Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add charset matching #6

Closed
sidorares opened this issue Nov 20, 2015 · 2 comments
Closed

Add charset matching #6

sidorares opened this issue Nov 20, 2015 · 2 comments

Comments

@sidorares
Copy link

I'd like to use fontconfig to select nearest font that have some particular unicode characters in it ( for example, if I render big string of latin chars using Times face, and small substring is in arabic I'd prefer exact match for Times and any font with arabic glyphs for that small substring )

@devongovett
Copy link
Member

Could you use the substituteFont method for this?

fontManager.substituteFontSync('Times', 'some characters');

@sidorares sidorares changed the title Ad charset matching Add charset matching Dec 30, 2015
@sidorares
Copy link
Author

Thanks, that should work!

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

No branches or pull requests

2 participants