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