From 5653f521de3c7bb4734e39cd3b84164bba23a39a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 29 Jan 2011 17:27:38 +0000 Subject: new font package ptsans git-svn-id: svn://tug.org/texlive/trunk@21222 c570f23f-e606-0410-a88d-b1316a301751 --- .../doc/fonts/ptsans/OT_TT_Install_E.txt | 70 ++++++++++++ .../doc/fonts/ptsans/OT_TT_Install_R.txt | 55 +++++++++ .../doc/fonts/ptsans/PTFreeFontLicense_eng_1.2.txt | 44 ++++++++ Master/texmf-dist/doc/fonts/ptsans/README | 8 ++ .../texmf-dist/doc/fonts/ptsans/caroncorrection.py | 97 ++++++++++++++++ .../texmf-dist/doc/fonts/ptsans/ptsans-sample.pdf | Bin 0 -> 525511 bytes .../texmf-dist/doc/fonts/ptsans/ptsans-sample.tex | 55 +++++++++ Master/texmf-dist/doc/fonts/ptsans/ptsans.pdf | Bin 0 -> 131958 bytes Master/texmf-dist/doc/fonts/ptsans/ptsans.tex | 125 +++++++++++++++++++++ 9 files changed, 454 insertions(+) create mode 100644 Master/texmf-dist/doc/fonts/ptsans/OT_TT_Install_E.txt create mode 100644 Master/texmf-dist/doc/fonts/ptsans/OT_TT_Install_R.txt create mode 100644 Master/texmf-dist/doc/fonts/ptsans/PTFreeFontLicense_eng_1.2.txt create mode 100644 Master/texmf-dist/doc/fonts/ptsans/README create mode 100644 Master/texmf-dist/doc/fonts/ptsans/caroncorrection.py create mode 100644 Master/texmf-dist/doc/fonts/ptsans/ptsans-sample.pdf create mode 100644 Master/texmf-dist/doc/fonts/ptsans/ptsans-sample.tex create mode 100644 Master/texmf-dist/doc/fonts/ptsans/ptsans.pdf create mode 100644 Master/texmf-dist/doc/fonts/ptsans/ptsans.tex (limited to 'Master/texmf-dist/doc/fonts') diff --git a/Master/texmf-dist/doc/fonts/ptsans/OT_TT_Install_E.txt b/Master/texmf-dist/doc/fonts/ptsans/OT_TT_Install_E.txt new file mode 100644 index 00000000000..730cce69210 --- /dev/null +++ b/Master/texmf-dist/doc/fonts/ptsans/OT_TT_Install_E.txt @@ -0,0 +1,70 @@ +OpenType TT Font Installation + +- OpenType TrueType (OT/TT) consists of one file with TTF extension. +- OpenType fonts can be installed and used in any version of Windows and on Mac OS X system. +- You may install OpenType fonts by the means of operating system or with the help of font management utilities. + +Installing OpenType fonts for common operating systems: + +- - - - - - +Windows 95/98/NT/ME + +You may install about 800 fonts maximum in Windows ME, 98, or 95. +You may install OpenType/TT fonts by the means of operating system or with the help of font management utilities. +Installing OpenType/TT fonts on Windows by means of operating system: +Click on Start button and select Settings > Control Panel (or Open My Computer then Control Panel) +Open (Double-click) the Fonts folder. +Select File - Install New Font. +Use the Folders and Drives windows to move to the folder on your hard drive, a floppy disk, or CD where +your new fonts are located. (Make sure you have unzipped the files). +If you are installing fonts from a floppy or CD be sure the 'Copy fonts to folder' box is checked; otherwise, +fonts may not be available to use if the floppy or CD is not in the drive at all times. +Highlight the font to install from the List of fonts window. To select more than one font, hold down the +CTRL key and click each font. Click OK. +After installation, you may need to restart an application or reselect a printer in your application to make +the new fonts appear in the font list. + +- - - - - - - +Windows 2000/XP/Vista/Windows 7 + +These Windows versions have built-in support for OpenType fonts. Installation procedure is identical for +all formats. +Open Control Panel. +In Windows 2000 double-click on My Computer. Then double-click on the Control Panel icon. +In Windows XP and later click on Start button and then on Control Panel. +Double-click on the Fonts icon in Control Panel window. +In the Fonts window, select the File menu, and choose Install New Font. +Navigate to the folder that contains fonts you want to install. +Select fonts you want to install. You can click to select one font, Control-click to select several fonts, or Shift-click +to select a contiguous group of fonts. +Press the "OK" button to install the fonts. +Close the Fonts control panel. +After installation, you may need to restart an application or reselect a printer in your application to make the new fonts +appear in the font list. + +- - - - - - +Mac OS 7.x-9.x + +DOES NOT SUPPORT OT/TT. + +- - - - - - +Mac OS X + +An OpenType font consists of one Suitcase file. +You may install fonts by means of operating system or with the help of font management utilities. To install with a font +management applications like Adobe Type Manager, Suitcase or Font Reserve, please consult the product manual. +Font installation on Mac is a simple drag and drop operation. +Close any open applications before installing fonts. New fonts do not appear in the font menu in some applications, +if you install them while an application is open. +Open the folder with fonts to install. +Make sure you are selecting fonts themselves, not a folder containing fonts. +Drag the selection to the Fonts folder inside the Library folder (see details below) on Mac OS X disk. +If you want fonts to be available to applications running in Classic mode, you must also install the fonts into the +Fonts folder inside the Classic System Folder. + +- - - - - - +Read more about OpenType fonts installation on our website: +http://www.paratype.com/help/finst/ + +OpenType Overview +http://www.paratype.com/help/formats/opentype.asp \ No newline at end of file diff --git a/Master/texmf-dist/doc/fonts/ptsans/OT_TT_Install_R.txt b/Master/texmf-dist/doc/fonts/ptsans/OT_TT_Install_R.txt new file mode 100644 index 00000000000..d5198861334 --- /dev/null +++ b/Master/texmf-dist/doc/fonts/ptsans/OT_TT_Install_R.txt @@ -0,0 +1,55 @@ + OpenType TT. + +- OpenType TrueType (OT/TT) TTF. +- OpenType Windows, Mac OS 10.x. +- OpenType + Adobe Type Manager. + + : +- - - - - - +Windows 95/98/NT/ME + + - 800. + , . + OpenType TT Windows : + - - . + . + - . + , . +ٸ . , + CTRL . . + , + . +- - - - - - - +Windows 2000/XP/Vista/Windows 7 + + Windows OpenType . + - - . + . + - . + , . +ٸ . , + CTRL . . + , + . +- - - - - - +Mac OS 7.x-9.x + + OT/TT. +- - - - - - +Mac OS X + +OpenType "". + OpenType +Adobe Type Manager. Mac - . + . , + . . +, , . + Library, Mac OS X. +- - - - - - + + OpenType : +http://www.paratype.com/help/finst/ + + OpenType: +http://www.paratype.com/help/formats/opentype.asp \ No newline at end of file diff --git a/Master/texmf-dist/doc/fonts/ptsans/PTFreeFontLicense_eng_1.2.txt b/Master/texmf-dist/doc/fonts/ptsans/PTFreeFontLicense_eng_1.2.txt new file mode 100644 index 00000000000..c66bf5bffc2 --- /dev/null +++ b/Master/texmf-dist/doc/fonts/ptsans/PTFreeFontLicense_eng_1.2.txt @@ -0,0 +1,44 @@ +Copyright (c) 2009, ParaType Ltd. All Rights Reserved. + +LICENSING AGREEMENT +for the fonts with Original Name: PT Sans, PT Serif +Version 1.2 - December 23, 2010 + +GRANT OF LICENSE +ParaType Ltd grants you the right to use, copy, modify the fonts and distribute +modified and unmodified copies of the fonts by any means, including placing +on Web servers for free downloading, embedding in documents and Web pages, +bundling with commercial and non commercial products, if it does not conflict +with the conditions listed below: + +- You may bundle the font with commercial software, but you may not sell the +fonts by themselves. They are free. + +- You may distribute the fonts in modified or unmodified version only together +with this Licensing Agreement and with above copyright notice. You have no +right to modify the text of Licensing Agreement. It can be placed in a separate +text file or inserted into the font file, but it must be easily viewed by users. + +- You may not distribute modified version of the font under the Original name +or combination of Original name with any other words without explicit written +permission from ParaType. + +TERMINATION & TERRITORY +This license has no limits on time and territory, but it becomes null and void +if any of the above conditions are not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY +WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, +OR OTHER RIGHT. IN NO EVENT SHALL PARATYPE BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN +AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT +OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER +DEALINGS IN THE FONT SOFTWARE. + +ParaType Ltd +http://www.paratype.ru + diff --git a/Master/texmf-dist/doc/fonts/ptsans/README b/Master/texmf-dist/doc/fonts/ptsans/README new file mode 100644 index 00000000000..6067d53b40c --- /dev/null +++ b/Master/texmf-dist/doc/fonts/ptsans/README @@ -0,0 +1,8 @@ +This package contains font PT Sans developed by ParaType for the project +"public Types of Russian Federation" and released under open user license. +The font was designed by Alexandra Korolkova, Olga Umpeleva and Vladimir +Yefimov. + +PT Sans has four basic styles, two narrow styles and two caption styles. +This package supports encodings T1, OT1, IL2, TS1, T2A, T2B, T2C and X2. + diff --git a/Master/texmf-dist/doc/fonts/ptsans/caroncorrection.py b/Master/texmf-dist/doc/fonts/ptsans/caroncorrection.py new file mode 100644 index 00000000000..55fa11bb68f --- /dev/null +++ b/Master/texmf-dist/doc/fonts/ptsans/caroncorrection.py @@ -0,0 +1,97 @@ +#! /usr/bin/env python + + +## Copyright 2011 Pavel Farar +# +# This work may be distributed and/or modified under the conditions of the +# LaTeX Project Public License, either version 1.3 of this license or (at +# your option) any later version. The latest version of this license is in +# http://www.latex-project.org/lppl.txt and version 1.3 or later is part of +# all distributions of LaTeX version 2005/12/01 or later. + + +# This script corrects the width of dcaron, tcaron, lcaron and Lcaron +# (where needed) in files *.pl and *.vpl -- the width will be the same +# as the width of the unaccented letter. + +# USAGE: The script is called without arguments and processes all *.pl and +# *.vpl files in the current directory -- even those that do not contain +# Latin alphabet. New files are generated (will be the same as the original +# if no change was really needed) and the original files are renamed +# by appending the suffix .old. + +# TODO: Change files only if necessary. Allow arguments for the script. +# Some clean-up. + + + +import os + + +class PropertyFile: + + def init(self, name): + self.name = name + self.width_d = "" + self.width_t = "" + self.width_l = "" + self.width_L = "" + + def parseWidth(self, s): + assert s.find(" (CHARWD R ") == 0 # the string should contain the width + s = s.replace(" (CHARWD R ","") + s = s[0:-2] # remove the last character + return s # return string -- different for *.pl and *.vpl + + def getWidths(self): + fin = open(self.name, "r") + while True: + s = fin.readline() + if s == "": break # end of file + if s.find("CHARACTER C d") == 1: + s = fin.readline() + self.width_d = self.parseWidth(s) + if s.find("CHARACTER C t") == 1: + s = fin.readline() + self.width_t = self.parseWidth(s) + if s.find("CHARACTER C l") == 1: + s = fin.readline() + self.width_l = self.parseWidth(s) + if s.find("CHARACTER C L") == 1: + s = fin.readline() + self.width_L = self.parseWidth(s) + fin.close() + + def writeCorrectedFile(self): + tempName = "TeMpFiLe.pl" + fin = open(self.name, "r") + fout = open(tempName, "w") + while True: + s = fin.readline() + if s == "": break # end of file + fout.write(s) # should be here + if s.find("CHARACTER") == 1: + if s.find("dcaron") > 0: + s = fin.readline() + fout.write(" (CHARWD R " + self.width_d + ")\n") + if s.find("tcaron") > 0: + s = fin.readline() + fout.write(" (CHARWD R " + self.width_t + ")\n") + if s.find("lcaron") > 0: + s = fin.readline() + fout.write(" (CHARWD R " + self.width_l + ")\n") + if s.find("Lcaron") > 0: + s = fin.readline() + fout.write(" (CHARWD R " + self.width_L + ")\n") + fout.close() + fin.close() + os.rename(self.name, self.name + ".old") + os.rename(tempName, self.name) + + +f = PropertyFile() +for fname in os.listdir("."): + if fname.endswith(".pl") or fname.endswith(".vpl"): + f.init(fname) + f.getWidths() + f.writeCorrectedFile() diff --git a/Master/texmf-dist/doc/fonts/ptsans/ptsans-sample.pdf b/Master/texmf-dist/doc/fonts/ptsans/ptsans-sample.pdf new file mode 100644 index 00000000000..322193b555a Binary files /dev/null and b/Master/texmf-dist/doc/fonts/ptsans/ptsans-sample.pdf differ diff --git a/Master/texmf-dist/doc/fonts/ptsans/ptsans-sample.tex b/Master/texmf-dist/doc/fonts/ptsans/ptsans-sample.tex new file mode 100644 index 00000000000..e4ad34523ce --- /dev/null +++ b/Master/texmf-dist/doc/fonts/ptsans/ptsans-sample.tex @@ -0,0 +1,55 @@ +\documentclass[oneside]{scrartcl} + +\usepackage[utf8]{inputenc} +\usepackage[russian, english]{babel} +\usepackage{PTSans} +\usepackage[T2A, T1]{fontenc} +\usepackage{textcomp} +\usepackage[colorlinks]{hyperref} +\hypersetup{pdfauthor={Pavel Farar}} + + +\newcommand{\SampleText}{Basic Latin alphabet: +a b c d e f g h i j k l m n o p q r s t u v w x y z +A B C D E F G H I J K L M N O P Q R S T U V W X Y Z; +some accented letters and germandbls: Š š Ť ť É é Ů ů Ü ü \ss; +basic Cyrillic alphabet: +\selectlanguage{russian}% +а б в г д е ё ж з и й к л м н о п р с т у ф х ц ч ш щ ъ ы ь э ю я +А Б В Г Д Е Ё Ж З И Й К Л М Н О П Р С Т У Ф Х Ц Ч Ш Щ Ъ Ы Ь Э Ю Я; +\selectlanguage{english}% +figures: +0 1 2 3 4 5 6 7 8 9; +Latin ligatures: fi fl; +fractions: \textonequarter\ \textonehalf\ \textthreequarters; +some currency: \texteuro\ \$ \pounds\ \textcent\ \textyen; +some mathematical symbols: + \textminus\ \textpm\ \texttimes\ \textdiv\ / += \textless\ \textgreater\ \textmu\ \textohm.} + + +\begin{document} + +\selectlanguage{english} + + +\section*{PT Sans} + +\SampleText\par +\textbf{\SampleText}\par +\textit{\SampleText}\par +\textbf{\textit{\SampleText}} + + +\section*{PT Sans Narrow} + +{\usefont{T1}{PTSansNarrow-TLF}{m}{n}\SampleText}\par +{\usefont{T1}{PTSansNarrow-TLF}{b}{n}\SampleText} + + +\section*{PT Sans Caption} + +{\usefont{T1}{PTSansCaption-TLF}{m}{n}\SampleText}\par +{\usefont{T1}{PTSansCaption-TLF}{b}{n}\SampleText} + + +\end{document} diff --git a/Master/texmf-dist/doc/fonts/ptsans/ptsans.pdf b/Master/texmf-dist/doc/fonts/ptsans/ptsans.pdf new file mode 100644 index 00000000000..a114c0dccf1 Binary files /dev/null and b/Master/texmf-dist/doc/fonts/ptsans/ptsans.pdf differ diff --git a/Master/texmf-dist/doc/fonts/ptsans/ptsans.tex b/Master/texmf-dist/doc/fonts/ptsans/ptsans.tex new file mode 100644 index 00000000000..636ca20ef35 --- /dev/null +++ b/Master/texmf-dist/doc/fonts/ptsans/ptsans.tex @@ -0,0 +1,125 @@ +%% Copyright 2011 Pavel Farar +% +% This work may be distributed and/or modified under the conditions of the +% LaTeX Project Public License, either version 1.3 of this license or (at +% your option) any later version. The latest version of this license is in +% http://www.latex-project.org/lppl.txt and version 1.3 or later is part of +% all distributions of LaTeX version 2005/12/01 or later. + + +\documentclass[oneside]{scrartcl} + +% the order might be important +\usepackage[utf8]{inputenc} +\usepackage[czech, english]{babel} +\usepackage[T1]{fontenc} +\usepackage{PTSans} +\usepackage{textcomp} +\usepackage[colorlinks]{hyperref} +\hypersetup{pdfauthor={Pavel Farar}} + + +\title{Support package for PT Sans} +\author{Pavel Farář\\ +\href{mailto:pavel.farar@centrum.cz}{pavel.farar@centrum.cz}} + +\begin{document} + +\maketitle + +\tableofcontents + +\section{Introduction} + +This package contains font PT Sans developed by ParaType for the project +\emph{public Types of Russian Federation} and released under open user +license. The font was designed by Alexandra Korolkova, Olga Umpeleva and +Vladimir Yefimov. For more information see the web-site of +\href{http://www.paratype.com}{ParaType}. + +PT Sans has four basic styles: +regular, \textbf{bold}, \textit{italic}, \textbf{\textit{bold italic}}; +two narrow styles: +{\usefont{T1}{PTSansNarrow-TLF}{m}{n}narrow}, +{\usefont{T1}{PTSansNarrow-TLF}{b}{n}narrow bold}, +and two caption styles: +{\usefont{T1}{PTSansCaption-TLF}{m}{n}caption} and +{\usefont{T1}{PTSansCaption-TLF}{b}{n}caption bold}. +The font covers wide range of Latin and Cyrillic alphabet and this package +supports encodings T1, OT1, IL2, TS1, T2A, T2B, T2C and X2. +There is also matching font PT Serif (the package will come later). + + +\section{License} + +The font PT Sans is licensed under Paratype Free Font License. + +All the support files are licensed under \LaTeX Project Public License, +either version 1.3 of this license or (at your option) any later version. + + +\section{Some Notes} + +The package was created using \emph{fontools} but with some changes. + +The prefix of the encoding files was changed from \emph{a\_} to +\emph{ptsans\_} to avoid name clashes. + +The style files created by \emph{fontools} required the package +\emph{fontenc} with all supported encodings. This might be a problem (for +example if the encoding IL2 is not installed). Moreover the font has only +tabular lining figures and therefore it does not need any extra support. +That is why I created much simpler style files. The original style files +were renamed by appending \emph{Old} at the end of the name. + +There were some inconsistencies in the width of letters with special type +of caron (ď, ť, ľ and Ľ). I made their width consistently equal to the +width of the unaccented letter. The change was done in the support files +without changing the original fonts. The simple script +\emph{caroncorrection.py} used for it is included. Now the usually +problematic Czech and Slovak words containing these letters look better: +\selectlanguage{czech}% +žluťoučký ďábel laťka loďka +%\selectlanguage{slovak}% +veľmi koľko Ľubomír. +\selectlanguage{english} + + +\section{Using the Package} + +There are three families PTSans-TLF, PTSansNarrow-TLF and PTSansCaption-TLF +that you can set with packages PTSans, PTSansNarrow and PTSansCaption. You +must explicitly use the package \emph{fontenc} or \emph{textcomp} (if needed). +For example: +\begin{verbatim} +\usepackage[T1]{fontenc} +\usepackage{PTSans} +\end{verbatim} + +You can also use the style files PTSansOld, PTSansNarrowOld and +PTSansCaptionOld generated by \emph{fontools}. You do not need to use neither +the package \emph{fontenc} nor \emph{textcomp}. For example: +\begin{verbatim} +\usepackage{PTSansOld} +\end{verbatim} + +You can typeset some text in a desired font like this: +\begin{verbatim} +{\usefont{T1}{PTSansNarrow-TLF}{b}{n}Text in narrow bold font} +\end{verbatim} + + +\section{Known Bugs} + +This is my first contribution and I soon realized that making a package +available also for others is much more work than just only for me. I decided +therefore to give it a reasonable amount of time, make the package usable, +release it and improve it later. + +The narrow and caption styles could be added to the base family. And I would +probably do so if there were four caption styles. + +Please \href{mailto:pavel.farar@centrum.cz}{send me} bug reports and +suggestions about this package. + +\end{document} -- cgit v1.2.3