Skip to content

Added OpenTypeFonts.GetTextShaper method#2319

Merged
JanKallman merged 1 commit intodevelop9from
feature/opentypefonts-gettextshaper
Mar 30, 2026
Merged

Added OpenTypeFonts.GetTextShaper method#2319
JanKallman merged 1 commit intodevelop9from
feature/opentypefonts-gettextshaper

Conversation

@swmal
Copy link
Copy Markdown
Contributor

@swmal swmal commented Mar 20, 2026

Adds a new static GetTextShaper method to OpenTypeFonts.

Examples:

// Tries to load the Roboto Regular font from system folders
var shaper = OpenTypeFonts.GetTextShaper("Roboto");
// Tries to load the Roboto Bold font from system folders
var shaper = OpenTypeFonts.GetTextShaper("Roboto", FontSubFamily.Bold);
// Tries to load the Roboto Regular font from system folders and the supplied font folders
var shaper = OpenTypeFonts.GetTextShaper("Roboto", FontSubFamily.Regular, FontFolders);
// Tries to load the Roboto Regular font from the supplied font folders only
var shaper = OpenTypeFonts.GetTextShaper("Roboto", FontSubFamily.Regular, FontFolders, false);
``

@JanKallman JanKallman merged commit 2595f04 into develop9 Mar 30, 2026
@JanKallman JanKallman deleted the feature/opentypefonts-gettextshaper branch March 30, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants