How to isolate combining characters and center them based on their SVG path in opentype.js? #745
Unanswered
lancejpollard
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Any hints at how I can put together a quick script to isolate specific combining characters from an existing font, like NotoSansHebrew, to a new font like
NotoSansHebrewDiacritics
, where the diacritics/combining-characters have bounding boxes that are the width of the SVG glyph?I would like to show, for this example, the Hebrew diacritics glyphs, not like this (with the dotted circle or circle in them, to account for the character they are supposed to combine with):
But instead, I would like to show them large and centered, in like some UI box, so all the glyphs appear centered in the padded div or somethign like that. Right now, taking NotoSansHebrew and displaying the diacritics in a div centered, they appear at weird positions because they are supposed to be combined with something. I want to avoid that problem.
Starting with this, what would I need to do? Could you whip together a script perhaps, for this one glyph as an example, or just outline what to do exactly? Not sure if I should capture the SVG, somehow compute its bounding box, and then write it back to a glyph, or if that is even possible.
Beta Was this translation helpful? Give feedback.
All reactions