Hi!
Maybe I'm not good at FOP PDF configs and there is smth I don't understand
I've met the following issue:
1) The fop-config file contains these rows:
~~~~
<renderers>
<renderer mime="application/pdf">
<fonts>
<directory recursive="true">/home/mm/.docmenta/fop_configs/fonts</directory>
<auto-detect>
<substitutions>
<substitution>
<from font-family="Helvetica" font-weight="0..900">
<to font-family="Arial">
</to></from></substitution>
<substitution>
<from font-family="Helvetica" font-weight="bold">
<to font-family="Arial" font-weight="bold">
</to></from></substitution>
<substitution>
<from font-family="Helvetica" font-style="italic">
<to font-family="Arial" font-style="italic">
</to></from></substitution>
<substitution>
<from font-family="Helvetica" font-style="italic" font-weight="bold">
<to font-family="Arial" font-style="italic" font-weight="bold">
</to></from></substitution>
</substitutions>
</auto-detect></fonts>
</renderer>
</renderers>
~~~~~
2) It goes well for paragraph text: all text is Arial
3) But for headers it is still Helvetica
4) As a result, I have the # symbol for every cyrillic glyph in a header and the following kind of message in the preview log:
Glyph "С" (0x421, Escyrillic) not available in font "Helvetica-Bold".
Hi!
What exactly is contained in your fonts directory (i.e. filename, type of file) and from where did you get it?
What is the font-family/style/weight set for the header1, header2,... styles in Docmenta?
Last edit: Manfred P. 2015-06-19
Good day to you, Manfred, and thanks for you reply!
I have 4 .ttf files (arial.ttf, arialbd.ttf, arialbi.ttf, ariali.ttf) in fonts directory. All files were copied from my Windows 7 fonts directory.
I've changed each inline and block style that I found setting the font-family to Arial.
And it helped for most headers.
Except "Table of Contents" header!
At this moment it is the only header rendered as "#########" with the following message type in log:
Hi again!
For the Table of Contents header: does a style with ID "toc_header" exist?
If not, try to create a block-style with this ID and set the font-family to Arial. Maybe this solves the issue. For more information on the "toc_header" style and other pre-defined styles see: Reference Manual > Styles Workspace > Pre-defined styles.
Hope this helps!
It helps!
Great Thanks!