You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Word doesn't render overflowed glyph, just cuts it.
If manually set 5pt font size, then renders fully:
The table row height in the XSL-FO/PDF is 5mm vs. 6.5mm for DOC.
The table cell vertical alignment in the PDF is 'top' vs. 'bottom' DOC (I didn't find how Word sets/calculate this property).
I've tried to set row height and vertical alignment manually in XSL-FO similar to DOC - PDF renders OK:
But in any case, 'braceleftmid' and 'bracerightmid' don't fit properly, and need to decrease the font-size:
Apache FOP can't increase the table row height automatically, just it doesn't catch the max glyph height (Word too, for braceleftmid and bracerightmid).
@Intelligent2013 I looked into this carefully, and you are absolutely right...
Because these particular glyphs are designed to go out of glyph bounds! I've checked "STIX Two Math" below. Originally it looks like it worked for HTML but it's just because HTML row has extra padding on top/bottom (see the first image to view actual bounding box)
HTML:
Word:
In BirdFont (free font glyph viewer), you can see that they extend out of the glyph area:
So... maybe the only way is to shrink their height? Sad but true...
We only have two choices:
only use [css font-family:STIX Two Math;font-size: Npt]
create new syntax that allows [custom-charset: math] with font-size...
The font being used is "STIX Two Math" or "Cambria Math" -- both will cause the same out of bounds issue.
Word (works):
HTML (works):
PDF (out of bounds):
Please see this ticket for details:
The text was updated successfully, but these errors were encountered: