You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

185 lines
5.9 KiB

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