Closed ribose-jeffreylau closed 2 years ago
@ribose-jeffreylau just confirming this is from PDF, right?
Forgot to mention, yes, PDF.
I believe this is a font issue: where the non-breaking space is not present in the font used. Ping @intelligent2013.
Update: it definitely does not seem like an issue with metanorma versions. I tested building locally with the latest gems and got the "correct" render.
I've generated PDF locally for iso-24229.presentation.xml, and everything is correct.
The visual difference between PDF from gh-pages and locally rendered in #
around em-dash glyph in Normative References and Bibliography:
xml:
Information and documentation — Foundation and vocabulary
The character  
is U+2009
- Thin Space.
ISO xslt uses these fonts: <fo:root font-family="Cambria, Times New Roman, Cambria Math, Source Han Sans"
.
The font CAMBRIA.TTC
on github
Downloading font "cleartype" from https://gitlab.com/fontmirror/archive/-/raw/master/PowerPointViewer.exe
...
- /config/fonts/CAMBRIA.TTC
doesn't contain the glyph for thin space: (font version is 1.02, 2016 vs. 5.97 2009 locally installed)
Usually, Apache FOP tries to find glyph in the next font in the specified list Cambria -> Times New Roman -> Cambria Math -> Source Han Sans
. But, because there isn't space in char sequence, and regarding 'Font Selection Strategies' https://xmlgraphics.apache.org/fop/2.5/fonts.html#selection, Apache FOP uses Cambria font and put #
for non-existing glyph.
For some another xslt I've added translation from thin-space to simple space (20), and looks like I should similar in ISO xslt too.
I wonder if we can find an open Cambria that contains a thin space for Fontist -- U+2009 seems very common.
5.97 2009 from Windows 7 (C:\Windows\Fonts\cambria.ttc):
Please note, that there isn't X
mark across glyph box in this version.
We have since updated Cambria and this is no longer an issue.
Broken
screenshot
versions
Expected
screenshot
versions