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
calling toArrayBuffer should create a font that has the same post table as the font it was created from
since the post table is created from scratch with defaults with post.make() things like underlineThickness and underlinePosition
are always set to 0 instead of using the values from the original post table
Expected Behavior
calling toArrayBuffer should create a font that has the same post table as the font it was created from
since the post table is created from scratch with defaults with post.make() things like underlineThickness and underlinePosition
are always set to 0 instead of using the values from the original post table
Here is the offending code:
opentype.js/src/tables/sfnt.js
Line 289 in 2a6c2f6
I would expect something like this:
opentype.js/src/tables/sfnt.js
Line 309 in 2a6c2f6
opentype.js/src/tables/sfnt.js
Line 312 in 2a6c2f6
opentype.js/src/tables/sfnt.js
Line 315 in 2a6c2f6
Current Behavior
font.toArrayBuffer() creates font with post table defaults
Possible Solution
parse values from the font's post table to create the new set of tables
Steps to Reproduce (for bugs)
load a font with a value for tables.post.underlineThickness != 0
call:
font.toArrayBuffer()
use the font with underline, see that it is not underlined
Context
have working underlining in an SVG
Your Environment
The text was updated successfully, but these errors were encountered: