Repository navigation
Add Face.getNamedInstances() - #247
Open
FlorianDenis wants to merge 1 commit into
Open
FlorianDenis wants to merge 1 commit into
FlorianDenis wants to merge 1 commit into
Conversation
Bind hb_ot_var_get_named_instance_count() and the hb_ot_var_named_instance_get_*() functions, returning per named instance its subfamily and PostScript name IDs and its design coordinates keyed by axis tag, ready to pass to Font.setVariations().
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Binds the
hb_ot_varnamed-instance functions, which are already compiled in but weren't exported:hb_ot_var_get_named_instance_count()hb_ot_var_named_instance_get_subfamily_name_id()hb_ot_var_named_instance_get_postscript_name_id()hb_ot_var_named_instance_get_design_coords()Face.getNamedInstances()returns, for each named instance of a variable font, its index, its subfamily name ID, its PostScript name ID when the font has one, and its design coordinates keyed by axis tag:Notes:
getAxisInfos()andgetColorPalettes(). An absent PostScript name ID (HB_OT_NAME_ID_INVALID) is left out, asgetFeatureNameIds()does.getAxisInfos()and can go straight toFont.setVariations(). If a font repeats an axis tag, the coordinate follows the axis thatgetAxisInfos()reports for that tag (the last one).