User avatar
krupitskas
Topic Author
Posts: 23
Joined: 16 Apr 2021, 17:42

Any way to RegisterFont in Noesis and get all the info like family and weight?

30 Sep 2021, 14:55

Hey! Question is, when I RegisterFont in the noesis, I provide font name. Noesis parses the whole font and receives family name and weights and etc. Can I somehow ask it from noesis or should I use a separate 3rd party library?
 
User avatar
jsantos
Site Admin
Posts: 3257
Joined: 20 Jan 2012, 17:18
Contact:

Re: Any way to RegisterFont in Noesis and get all the info like family and weight?

30 Sep 2021, 15:20

There is an internal function for that but it is internal and not available without access to source code
void EnumFontFaces(Stream* stream, const FontFaceInfoCallback& callback);
Does WPF offer a similar functionality?

Do you need to do this at runtime? Because you can easily get this information from Blend or Windows (clicking on the font)
 
User avatar
krupitskas
Topic Author
Posts: 23
Joined: 16 Apr 2021, 17:42

Re: Any way to RegisterFont in Noesis and get all the info like family and weight?

03 Oct 2021, 16:09

We have not access to source code. Not sure about WPF, we have C++ engine.
Yup, we are loading bunch of fonts, after we want to receive them for runtime text placement. So when we loading font we know only filename.
But font family name not always match filename, so Im looking for a way to receive all this information. I've hoped that noesis already parse all of this and can give you info back.
I would be cool that RegisterFont can give you familyname as return value, and maybe something else.
 
User avatar
jsantos
Site Admin
Posts: 3257
Joined: 20 Jan 2012, 17:18
Contact:

Re: Any way to RegisterFont in Noesis and get all the info like family and weight?

04 Oct 2021, 13:05

Please, open a ticket about it. We will think how to solve this.

But, if you can do this offline, it is much preferred.

There is also an option in WPF (not supported in Noesis for now) to specify the name of the ttf filename, instead of the family name.
 
User avatar
krupitskas
Topic Author
Posts: 23
Joined: 16 Apr 2021, 17:42

Re: Any way to RegisterFont in Noesis and get all the info like family and weight?

06 Oct 2021, 19:59

There is also an option in WPF (not supported in Noesis for now) to specify the name of the ttf filename, instead of the family name.
This is actually would be nice.

Issue: https://www.noesisengine.com/bugs/view.php?id=2140
 
User avatar
jsantos
Site Admin
Posts: 3257
Joined: 20 Jan 2012, 17:18
Contact:

Re: Any way to RegisterFont in Noesis and get all the info like family and weight?

07 Oct 2021, 13:23

Thanks!

Who is online

Users browsing this forum: No registered users and 4 guests