The Wayback Machine - https://web.archive.org/web/20200914065514/http://github.com/microsoft/Win2D/issues/543
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

Querying SemanticTag #543

Open
Leisvan opened this issue Jul 29, 2017 · 2 comments
Open

Querying SemanticTag #543

Leisvan opened this issue Jul 29, 2017 · 2 comments

Comments

@Leisvan
Copy link

@Leisvan Leisvan commented Jul 29, 2017

Hi. I'm using Win2D.UWP to get the System font set. I need to filter the queried fonts and group them in categories like "Serif", "Sans-Serif", "Decorative", etc. (Like Adobe apps or Corel Font Manager).
As far as I've researched that information can be accessed through CanvasFontSet.GetPropertyValues with parameter CanvasFontPropertyIdentifier.SemanticTag but that do not returns any value in any of my installed fonts.

Is there another way to know that info? Please, anything can be helpful.

Thanks in advance

@damyanp
Copy link
Member

@damyanp damyanp commented Jul 31, 2017

Hi - I'm afraid that SemanticTag is currently not populated for system fonts. This is something that custom font sets can populate.

For now, I think that the closest you may be able to get is to use the PANOSE information (see CanvasFontFace.Panose. Unfortunately, you may find that this is too slow for your purposes.

I've forwarded your request on to the platform feature team to have SemanticTag available for system fonts.

Thanks.

@Leisvan
Copy link
Author

@Leisvan Leisvan commented Aug 1, 2017

Hi.
Thanks for your answer. I'll be more than happy to be able to query SemanticTag as my only solution right now is the PANOSE approach.
Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.