]> git.immae.eu Git - github/wallabag/wallabag.git/blob - inc/3rdparty/libraries/mpdf/FONT INFO.txt
add pdf and mobi libraries
[github/wallabag/wallabag.git] / inc / 3rdparty / libraries / mpdf / FONT INFO.txt
1
2 =================
3 Open Source Fonts
4 =================
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.
7
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:
10
11 General collections
12 -------------------
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/
17
18 Thai fonts
19 ----------
20 - Collection of Thai fonts from: ftp://linux.thai.net/pub/thailinux/software/thai-ttf/
21
22
23 OCR-B
24 -----
25 OCRB (ocrb10) font: http://ansuz.sooke.bc.ca/software/ocrb.php
26 Useful for barcodes (included in the release)
27
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)
35
36
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
49
50 Arabic/Eastern fonts
51 --------------------
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
56
57
58 Other sources
59 -------------
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
64 DaiBanna (Tai Le)
65
66 Mediaeval & Ancient Scripts
67 ---------------------------
68 Junicode: http://junicode.sourceforge.net/
69 Cardo: http://scholarsfonts.net/cardofnt.html
70
71 Syriac fonts
72 ------------
73 http://www.bethmardutho.org/meltho/
74
75
76
77
78 ============
79 ARABIC FONTS
80 ============
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.
84
85
86
87 ===========
88 INDIC FONTS
89 ===========
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.
92
93 A set of fonts has been adapted to use specifically with mPDF. They are based on a set of fonts from:
94
95 http://www.cdacmumbai.in/projects/indix/e_introduction.shtml
96
97 NB These fonts are released under GNU GPL Version 2 license
98
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
101 mPDF download.
102
103
104
105 Users of mPDF v4.x
106 ------------------
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.
110
111
112
113 =========
114 CJK Fonts
115 =========
116
117
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
123
124 mPDF requires 2 fonts and they should be cross-referenced in config_fonts.php e.g.
125 "sun-exta" => array(
126 'R' => "Sun-ExtA.ttf",
127 'sip-ext' => 'sun-extb',
128 ),
129 "sun-extb" => array(
130 'R' => "Sun-ExtB.ttf",
131 ),
132
133 --OR--
134 (NB these ones also define the font number within the TTC Collection as TTCfontID)
135 'mingliu' => array (
136 'R' => 'mingliu.ttc',
137 'TTCfontID' => array (
138 'R' => 1,
139 ),
140 'sip-ext' => 'mingliu-extb',
141 ),
142 'mingliu-extb' => array (
143 'R' => 'mingliub.ttc',
144 'TTCfontID' => array (
145 'R' => 1,
146 ),
147 ),
148 'mingliu_hkscs' => array (
149 'R' => 'mingliu.ttc',
150 'TTCfontID' => array (
151 'R' => 3,
152 ),
153 'sip-ext' => 'mingliu_hkscs-extb',
154 ),
155 'mingliu_hkscs-extb' => array (
156 'R' => 'mingliub.ttc',
157 'TTCfontID' => array (
158 'R' => 3,
159 ),
160 ),
161
162
163
164