Page 1 of 1

Font: FontWeight Light / Extrabold

Posted: 03 Feb 2016, 15:19
by polycular
Hi Folks,


We would like to use a light-weighted and an extrabold font in one of our projects. Is there any possibility to do so?

Further, is it possible to select a font by the font's name instead of using their FontFamiliy in combination with FontStyle and/or FontWeight?
(e.g. ="Fonts/#Open Sans Extrabold" instead of FontFamily="Fonts/#Open Sans" FontWeight="ExtraBold")


Best regards,
Michael

Re: Font: FontWeight Light / Extrabold

Posted: 03 Feb 2016, 16:58
by jsantos
The only way to select a font in XAML is by using a combination of family name and properties. In v1.2 only Bold and Italic attributes are supported. For v1.3 (yet not released) we added support to all the WPF attributes (FontWeight, FontStyle and FontStretch).

The workaround right now is editing the TTF and changing its family name to something you must specify in the FontFamily attribute.

Sorry for the inconvenience.