-
Notifications
You must be signed in to change notification settings - Fork 0
/
foponts.xml
211 lines (169 loc) · 8.3 KB
/
foponts.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<?xml version="1.0"?>
<!--
Copyright 1999-2017 The Apache Software Foundation
Copyright 2015-2019 Eduard Tibet
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- ET: This file is based on the original Apache FOP 2.1 configuration file, located at:
http://svn.apache.org/viewvc/xmlgraphics/fop/tags/fop-2_1/conf/fop.xconf
Any further modifications of this file were made by Eduard Tibet, eduard.tibet [ @ ] gmail.com, the author of foponts project [https://github.com/eduardtibet/foponts], owner and maintainer of Russian Single Sourcing Technical Documentation site [http://www.singlesourcing.ru].
Some extractions were made from the original configuration file (i.e. no AFP renderer) to fully adopt the main goal of this file - working with DocBook/XML source files using Cyrillic (Russian) fonts. All fonts, mentioned in this file, are distributed according to their licenses - see license texts attached.
All modification marked with 'ET' were made by Eduard Tibet -->
<!-- ET: This file is distributed under Apache 2.0 License. See NOTICE and LICENSE for more info -->
<fop version="1.0">
<!-- ET: Font Base URI (absolute) for resolving font URLs (renderer section) with FOP font autodetect turned off
NOTE: Use only absolute paths as a font-base value. Relative paths don't work at all for some reasons!
If you want to use your local fonts on your local HDD/SSD for speedup rendering, change below value
to your local absolute path with font glyphs files.
Windows users should use file:///logical_drive: , i.e. file:///D:/fonts/ prefix to get things working. -->
<font-base>http://www.singlesourcing.ru/pub/foponts/foponts-fonts/</font-base>
<!-- Source resolution in dpi (dots/pixels per inch) for determining the size of pixels in SVG and bitmap images, default: 72dpi -->
<source-resolution>72</source-resolution>
<!-- Target resolution in dpi (dots/pixels per inch) for specifying the target resolution for generated bitmaps, default: 72dpi -->
<target-resolution>600</target-resolution>
<!-- Strict user configuration -->
<strict-configuration>true</strict-configuration>
<!-- Strict FO validation -->
<strict-validation>true</strict-validation>
<!-- Default page-height and page-width, in case value is specified as auto -->
<default-page-settings height="297mm" width="210mm"/>
<!-- Information for specific renderers -->
<!-- Uses renderer mime type for renderers -->
<renderers>
<renderer mime="application/pdf">
<filterList>
<!-- provides compression using zlib flate (default is on) -->
<value>flate</value>
<!-- encodes binary data into printable ascii characters (default off)
This provides about a 4:5 expansion of data size -->
<!-- <value>ascii-85</value> -->
<!-- encodes binary data with hex representation (default off)
This filter is not recommended as it doubles the data size -->
<!-- <value>ascii-hex</value> -->
</filterList>
<fonts>
<!-- ET: Sans family fonts -->
<!-- ET: Sans normal -->
<font kerning="yes" embed-url="liberation-sans-regular.ttf">
<font-triplet name="sans-serif" style="normal" weight="normal"/>
<font-triplet name="Symbol" style="normal" weight="normal"/>
<font-triplet name="ZapfDingbats" style="normal" weight="normal"/>
</font>
<!-- ET: Sans bold -->
<font kerning="yes" embed-url="liberation-sans-bold.ttf">
<font-triplet name="sans-serif" style="normal" weight="bold"/>
<font-triplet name="Symbol" style="normal" weight="bold"/>
<font-triplet name="ZapfDingbats" style="normal" weight="bold"/>
</font>
<!-- ET: Sans italic -->
<font kerning="yes" embed-url="liberation-sans-italic.ttf">
<font-triplet name="sans-serif" style="italic" weight="normal"/>
<font-triplet name="Symbol" style="italic" weight="normal"/>
<font-triplet name="ZapfDingbats" style="italic" weight="normal"/>
</font>
<!-- ET: Sans bold italic -->
<font kerning="yes" embed-url="liberation-sans-bold-italic.ttf">
<font-triplet name="sans-serif" style="italic" weight="bold"/>
<font-triplet name="Symbol" style="italic" weight="bold"/>
<font-triplet name="ZapfDingbats" style="italic" weight="bold"/>
</font>
<!-- ET: Serif family fonts -->
<!-- ET: Serif normal -->
<font kerning="yes" embed-url="charis-sil-regular.ttf">
<font-triplet name="serif" style="normal" weight="normal"/>
</font>
<!-- ET: Serif italic -->
<font kerning="yes" embed-url="charis-sil-italic.ttf">
<font-triplet name="serif" style="italic" weight="normal"/>
</font>
<!-- ET: Serif bold -->
<font kerning="yes" embed-url="charis-sil-bold.ttf">
<font-triplet name="serif" style="normal" weight="bold"/>
</font>
<!-- ET: Serif bold italic -->
<font kerning="yes" embed-url="charis-sil-bold-italic.ttf">
<font-triplet name="serif" style="italic" weight="bold"/>
</font>
<!-- ET: Monospace family fonts -->
<!-- ET: Monospace normal -->
<font kerning="yes" embed-url="free-monospaced-regular.ttf">
<font-triplet name="monospace" style="normal" weight="normal"/>
</font>
<!-- ET: Monospace bold -->
<font kerning="yes" embed-url="free-monospaced-bold.ttf">
<font-triplet name="monospace" style="normal" weight="bold"/>
</font>
<!-- ET: Monospace italic -->
<font kerning="yes" embed-url="free-monospaced-italic.ttf">
<font-triplet name="monospace" style="italic" weight="normal"/>
</font>
<!-- ET: Monospace bold italic -->
<font kerning="yes" embed-url="free-monospaced-bold-italic.ttf">
<font-triplet name="monospace" style="italic" weight="bold"/>
</font>
<!-- ET: Symbols family fonts - special for Greek, etc. -->
<font kerning="yes" embed-url="galatia-sil-regular.ttf">
<font-triplet name="symbol" style="normal" weight="normal"/>
</font>
<font kerning="yes" embed-url="galatia-sil-bold.ttf">
<font-triplet name="symbol" style="normal" weight="bold"/>
</font>
</fonts>
<!-- auto-detect fonts -->
<!-- ET: It is special FOP feature to autodetect and use fonts installed and available at system paths at your local OS. Autodetect is turning off due to using certain free fonts.
Disabling autodetect leads to use exact font glyphs and get predictable results on print output.
If you want to try autodetect feature, comment out all font elements above and just uncomment
auto-detect below - but at your own risk -->
<!-- <auto-detect/> -->
<!-- This option lets you specify additional options on an XML handler -->
<!--xml-handler namespace="http://www.w3.org/2000/svg">
<stroke-text>false</stroke-text>
</xml-handler-->
</renderer>
<renderer mime="application/postscript">
<!-- This option forces the PS renderer to rotate landscape pages -->
<!--auto-rotate-landscape>true</auto-rotate-landscape-->
<!-- This option lets you specify additional options on an XML handler -->
<!--xml-handler namespace="http://www.w3.org/2000/svg">
<stroke-text>false</stroke-text>
</xml-handler-->
</renderer>
<renderer mime="application/vnd.hp-PCL">
</renderer>
<!-- MIF does not have a renderer
<renderer mime="application/vnd.mif">
</renderer>
-->
<renderer mime="image/svg+xml">
<format type="paginated"/>
<link value="true"/>
<strokeText value="false"/>
</renderer>
<renderer mime="application/awt">
</renderer>
<renderer mime="image/png">
<!--transparent-page-background>true</transparent-page-background-->
</renderer>
<renderer mime="image/tiff">
<!--transparent-page-background>true</transparent-page-background-->
<!--compression>CCITT T.6</compression-->
</renderer>
<renderer mime="text/xml">
</renderer>
<!-- RTF does not have a renderer
<renderer mime="text/rtf">
</renderer>
-->
<renderer mime="text/plain">
<pageSize columns="80"/>
</renderer>
</renderers>
</fop>