File: fop.xconf.in

package info (click to toggle)
gnucash-docs 5.13-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 164,260 kB
  • sloc: xml: 101,090; ruby: 229; makefile: 59; sh: 8
file content (66 lines) | stat: -rw-r--r-- 2,773 bytes parent folder | download | duplicates (2)
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
<?xml version="1.0"?>
<fop version="1.0">
  <base>@CMAKE_CURRENT_SOURCE_DIR@</base>
  <font-base>@CMAKE_SOURCE_DIR@/fonts</font-base>
  
  <!-- Information for specific renderers -->
  <!-- Uses renderer mime type for renderers -->
  <renderers>
    <renderer mime="application/pdf">
      <fonts>
        <!-- embedded fonts -->
        <!--
        This information must exactly match the font specified
        in the fo file. Otherwise it will use a default font.

        For example,
        <fo:inline font-family="Arial" font-weight="bold" font-style="normal">
            Arial-normal-normal font
        </fo:inline>
        for the font triplet specified by:
        <font-triplet name="Arial" style="normal" weight="bold"/>

        If you do not want to embed the font in the pdf document
        then do not include the "embed-url" attribute.
        The font will be needed where the document is viewed
        for it to be displayed properly.

        possible styles: normal | italic | oblique | backslant
        possible weights: normal | bold | 100 | 200 | 300 | 400
                          | 500 | 600 | 700 | 800 | 900
        (normal = 400, bold = 700)
        -->
        <font kerning="yes" embed-url="opentype/source/SourceHanSerifCN-Regular.otf">
          <font-triplet name="serif" style="normal" weight="normal"/>
        </font>
        <font kerning="yes" embed-url="truetype/Arphic/ukai.ttc" sub-font="AR PL UKai CN">
          <font-triplet name="serif" style="italic" weight="normal"/>
          <font-triplet name="serif" style="italic" weight="bold"/>
          <font-triplet name="monospace" style="normal" weight="normal"/>
          <font-triplet name="monospace" style="italic" weight="normal"/>
        </font>
        <font kerning="yes" embed-url="opentype/source/SourceHanSerifCN-Bold.otf">
          <font-triplet name="serif" style="normal" weight="bold"/>
        </font>

        <font kerning="yes" embed-url="opentype/source/SourceHanSansCN-Regular.otf">
          <font-triplet name="sans-serif" style="normal" weight="normal"/>
        </font>
        <font kerning="yes" embed-url="opentype/source/SourceHanSansCN-Bold.otf">
          <font-triplet name="sans-serif" style="italic" weight="normal"/>
          <font-triplet name="sans-serif" style="italic" weight="bold"/>
        </font>
        <font kerning="yes" embed-url="opentype/source/SourceHanSansCN-Bold.otf">
          <font-triplet name="sans-serif" style="normal" weight="bold"/>
        </font>
      </fonts>

      <!-- This option lets you specify additional options on an XML handler -->
      <xml-handler namespace="http://www.w3.org/2000/svg">
        <stroke-text>true</stroke-text>
      </xml-handler>

    </renderer>
  </renderers>

</fop>