source: trunk/client/inc/hpdf5/tecnickcom/tcpdf/fonts/freefont-20120503/USAGE

Last change on this file was 347, checked in by roby, 4 years ago

Aggiornamento per compatibilità con php7.4

File size: 5.9 KB
Line 
1 Usage of GNU FreeFont
2
3Language scripts and faces
4==========================
5
6There are three faces (serif, sans-serif, and monospace), and four styles
7(regular, bold, cursive/italic, and bold cursive/italic) for each face.
8There is one font file per face/style combination: 12 files in total.
9
10The letters for various languages, as well as specialized symbols, exist
11among the various font files, but they are not uniformly populated.
12All the fonts have complete support for Latin, Cyrillic, and Greek, as
13well as most of the extensions for those scripts.
14
15At this time, serif regular has by far the largest number of letters, and
16supports the largest number of writing scripts. However there are writing
17scripts supported by the sans-serif but not by serif.
18
19For an overview of which scripts and sets of symbols are supported by
20which face, see the FreeFont 'coverage' web page.
21
22Font features
23=============
24
25FreeFont has numerous font "features" that perform alterations to the basic
26letters of the font, replacing them with other letters, or positioning them
27with respect to other letters.
28
29Many features are activated automatically, but in some environments, they
30present some user control. This documents those features with user control.
31
32Language-specific features
33==========================
34
35Some OpenType font features are activated only when the text is specified to
36be of a certain language.
37
38This is done in HTML by enclosing the text with a tag whose 'lang' attribute
39is set to the appropriate ISO 632.2 language code. In a word processor,
40any block of text can be given a language setting.
41
42Latin
43-----
44Catalan ligature improving l·l
45Dutch ligatures for ij, IJ
46Sami localized form for letter Eng
47Turkish overrides ligatures fi ffi of Latin
48
49Cyrillic
50--------
51Ukrainian ligature for double i-diaresis
52Serbian/Macedonian localized letters be, and more in italic
53Bulgarian style set for modern glyphs
54
55Hebrew
56------
57Yiddish raised vowels under yo
58
59Devanagari
60----------
61Sanskrit much larger set of ligatures
62
63Hindi, Marathi better spacing of Western punctuation marks
64
65Indic languages
66---------------
67
68The 'danda' character is encoded in Unicode only in the Devanagari range.
69When writing in scripts of other Indic languages, this same character is to
70be used. But the shapes and line thicknesses of glyphs vary slightly from
71one script to another, so the same glyph for 'danda' may not fit all scripts.
72
73By specifying the language of the text, an appropriate glyph for 'danda'
74will be obtained.
75
76Style sets
77==========
78
79These replacements are activated by specifying a "Style Set".
80These features are accessible only from typesetting software.
81
82Cyrillic Bulgarian modern (ss01)
83
84Devanagari Bombay (ss02), Calcutta (ss03), Nepali (ss04)
85
86Discretionary features
87======================
88These features are accessible only from typesetting software.
89Typically the user must specifically request them.
90
91Unless otherwise noted, these are available only in FreeSerif.
92
93Ligatures and substitutions
94---------------------------
95
96Arabic, Armenian, Hebrew, German, Dutch
97
98Small captials
99--------------
100
101A limited set of specially drawn small capital letters in Latin.
102
103Superscript and subscript
104-------------------------
105
106Transform a limited set of characters--mostly Latin letters and numerals--
107to versions well-sized and positioned as superscript or subscript.
108
109Numeral styles
110--------------
111
112The default numerals of FreeSerif are mono-spaced and of even height.
113It also features proportionally-spaced numerals, and "old-style" numerals--
114those which vary in height and sometimes go beneath the baseline.
115These can be had at discretion.
116
117Diagonal fractions
118------------------
119
120A limited set of diagonal fraction substitutions are available at discretion.
121The set is more than what is encoded in Unicode.
122They work with the ASCII slash or the mathematical slash U+2215.
123The transform a sequence "number-slash-number" to a diagonal form.
124
125Zero
126----
127
128A slashed form of the numeral zero is available at discretion.
129Available in all faces.
130
131Alternative characters
132======================
133
134FreeSerif has some listings of alternatives for specific characters.
135Again this is use primarily in specialized typesetting software.
136
137Greek, Latin
138
139Use in LaTeX
140============
141It is possible to use Unicode fonts in recent LaTeX implementations, but in
142 LuaTeX http://www.luatex.org/ and
143 XeTeX http://tug.org/xetex/
144it is particularly easy to use Unicode text, and to enable font features.
145Recent versions of these systems use the 'fontspec' package to choose fonts
146and features.
147
148A very simple document might contain the lines
149---------------------------------------------------------------------------
150\documentclass{ltxdockit}
151\usepackage{fontspec}
152\usepackage{xunicode}
153\setmainfont[]{FreeSerif}
154\begin{document}
155{\fontspec[Script=Default,Fractions={On}]{FreeSerif}
1561/7 3/10 7/10}
157
158x\raisebox{-0.5ex}{{\scriptsize ai}}
159x{\fontspec[Script=Default,VerticalPosition={Inferior}]{FreeSerif}
160abcdefghijklmnopqrstuvwxyz+−(0123456789)} \\
161x\raisebox{0.85ex}{{\scriptsize ai}}
162x{\fontspec[Script=Default,VerticalPosition={Superior}]{FreeSerif}
163abcdefghijklmnopqrstuvwxyz+−(0123456789)}
164
165{\fontspec[Script=Latin]{FreeSerif}
166\textsc{Small Caps} }
167
168{ BсОчкО х
169Пра се ражЎат свПбПЎМО О равМО пП ЎПстПйМствП О права.
170\fontspec[Script=Cyrillic,Language=Bulgarian,Variant={1}]{FreeSerif} \selectfont
171BсОчкО х
172Пра се ражЎат свПбПЎМО О равМО пП ЎПстПйМствП О права. }
173
174\end{document}
175---------------------------------------------------------------------------
176Here are some 'fontspec' setting-value pairs meaningful for FreeFont.
177
178Numbers: Lining OldStyle Proportional SlashedZero
179Fractions: On
180VerticalPosition: Superior Inferior
181Ligatures: Common Historical
182Letters: UppercaseSmallCaps
183Variant: 1 (etc. -- must be in {} picks style set.)
184---------------------------------------------------------------------------
185
186
187$Id: usage.txt,v 1.10 2011-07-16 08:38:06 Stevan_White Exp $
Note: See TracBrowser for help on using the repository browser.