FONT INFO.txt 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. =================
  2. Open Source Fonts
  3. =================
  4. mPDF should be able to read most TrueType Unicode font files with a .ttf extension
  5. Truetype fonts with .ttf or .otf extension and .ttc TrueType collections should also work OK.
  6. You will probably therefore have access to any number of fonts, but here are some useful sources for
  7. open-source or free-use fonts. Many of these were included with earlier versions of mPDF:
  8. General collections
  9. -------------------
  10. - DejaVu font collection from: http://dejavu-fonts.org/wiki/Main_Page (included in the release)
  11. - GNU FreeFont from: http://www.gnu.org/software/freefont/
  12. - Linux Libertine from: http://www.linuxlibertine.org (use the .ttf files - not the .otf)
  13. - Liberation Fonts from: https://fedorahosted.org/liberation-fonts/ or directly https://fedorahosted.org/releases/l/i/liberation-fonts/
  14. Thai fonts
  15. ----------
  16. - Collection of Thai fonts from: ftp://linux.thai.net/pub/thailinux/software/thai-ttf/
  17. OCR-B
  18. -----
  19. OCRB (ocrb10) font: http://ansuz.sooke.bc.ca/software/ocrb.php
  20. Useful for barcodes (included in the release)
  21. Pan-Unicode fonts (fonts containing most characters defined in Unicode)
  22. -----------------------------------------------------------------------
  23. - BitStream Cyberbit from: http://aol-4.vo.llnwd.net/pub/communicator/extras/fonts/windows/
  24. Cyberbit.ZIP (or just Google it)
  25. (NB if run with $debug_fonts gives warning of invalid table checksum - just turn it off!)
  26. - Code2000 (NB shareware) from: http://www.code2000.net/code2000_page.htm
  27. - Quivira from: http://www.quivira-font.com/ (combining diacritics are not placed correctly, but has a very full set of glyphs)
  28. CJK (Chinese-Japanese-Korean)
  29. -----------------------------
  30. HanNomA and B from: http://vietunicode.sourceforge.net/fonts/fonts_hannom.html
  31. unBatang_0613 from: http://people.ktug.or.kr/~nomos/mine/UnBatang_0613.ttf
  32. Sun-ExtA and Sun-ExtB from: http://www.alanwood.net/unicode/fonts-east-asian.html
  33. (http://www.alanwood.net/downloads/index.html)
  34. Fonts which contain both Unicode BMP and SIP (Supplementary Ideographic Plane)
  35. characters in one file e.g. "AR PL UMing" and "AR PL UKai"
  36. from: http://www.freedesktop.org
  37. http://www.freedesktop.org/wiki/Software/CJKUnifonts/Download
  38. [MS Windows fonts such as MS Mincho and MingLiU also work]
  39. Japanese IPA fonts: http://ossipedia.ipa.go.jp/ipafont/index.html
  40. Arabic/Eastern fonts
  41. --------------------
  42. - XW Zar fonts can be downloaded from: http://www.redlers.com/downloadfont.html
  43. (2 of these fonts are included in the release)
  44. (original site in Farsi: http://wiki.irmug.org/index.php/XWZar)
  45. - See below for more details and font names of the fonts used in mPDF 4.x
  46. Other sources
  47. -------------
  48. http://www.unifont.org/fontguide/
  49. http://www.alanwood.net/unicode/fonts.html
  50. http://cooltext.com (e.g. http://cooltext.com/Fonts-Unicode+Arabic)
  51. ApparatusSIL, DoulosSIL, Padauk from SIL: http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&cat_id=FontDownloads
  52. DaiBanna (Tai Le)
  53. Mediaeval & Ancient Scripts
  54. ---------------------------
  55. Junicode: http://junicode.sourceforge.net/
  56. Cardo: http://scholarsfonts.net/cardofnt.html
  57. Syriac fonts
  58. ------------
  59. http://www.bethmardutho.org/meltho/
  60. ============
  61. ARABIC FONTS
  62. ============
  63. You can use any appropriate Unicode-encoded .ttf or .ttc font file for arabic text, but
  64. the font file must include the Arabic Presentation Forms-B (U+FE70–U+FEFF).
  65. 2 of the XW Zar fonts are included in the release.
  66. ===========
  67. INDIC FONTS
  68. ===========
  69. Indic scripts e.g. Hindi, Bengali etc. use conjuct forms which have no Unicode assignment. You
  70. cannot therefore use any standard .ttf font files with mPDF.
  71. A set of fonts has been adapted to use specifically with mPDF. They are based on a set of fonts from:
  72. http://www.cdacmumbai.in/projects/indix/e_introduction.shtml
  73. NB These fonts are released under GNU GPL Version 2 license
  74. You need these adapted fonts (ind_bn_1_001.ttf etc.) to work with mPDF, as the glyphs have been
  75. assigned to Unicode values in the Private Use area (U+E000 ->). These are included in the
  76. mPDF download.
  77. Users of mPDF v4.x
  78. ------------------
  79. The original indic font files do not contain a full set of even basic ASCII
  80. characters. The fonts supplied have been "fixed" to include those extra
  81. characters. This now works whether the font is subset or not.
  82. =========
  83. CJK Fonts
  84. =========
  85. Supplemental Ideographic Plane
  86. ==============================
  87. SIP = Supplemental Ideographic Plane ( = Plane 2) = U+20000 - U+2FFFF (131072 - 196607)
  88. These characters are required for the HKSCS Hong Kong Supplementary Character Set. Fonts with
  89. SIP characters are commonly divided into a second file e.g. MingLiU and MingLiU-ExtB
  90. mPDF requires 2 fonts and they should be cross-referenced in config_fonts.php e.g.
  91. "sun-exta" => array(
  92. 'R' => "Sun-ExtA.ttf",
  93. 'sip-ext' => 'sun-extb',
  94. ),
  95. "sun-extb" => array(
  96. 'R' => "Sun-ExtB.ttf",
  97. ),
  98. --OR--
  99. (NB these ones also define the font number within the TTC Collection as TTCfontID)
  100. 'mingliu' => array (
  101. 'R' => 'mingliu.ttc',
  102. 'TTCfontID' => array (
  103. 'R' => 1,
  104. ),
  105. 'sip-ext' => 'mingliu-extb',
  106. ),
  107. 'mingliu-extb' => array (
  108. 'R' => 'mingliub.ttc',
  109. 'TTCfontID' => array (
  110. 'R' => 1,
  111. ),
  112. ),
  113. 'mingliu_hkscs' => array (
  114. 'R' => 'mingliu.ttc',
  115. 'TTCfontID' => array (
  116. 'R' => 3,
  117. ),
  118. 'sip-ext' => 'mingliu_hkscs-extb',
  119. ),
  120. 'mingliu_hkscs-extb' => array (
  121. 'R' => 'mingliub.ttc',
  122. 'TTCfontID' => array (
  123. 'R' => 3,
  124. ),
  125. ),