User avatar
Topic Author
Posts: 19
Joined: 29 Sep 2015, 18:18

Font: FontWeight Light / Extrabold

03 Feb 2016, 15:19

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,
User avatar
Site Admin
Posts: 3151
Joined: 20 Jan 2012, 17:18

Re: Font: FontWeight Light / Extrabold

03 Feb 2016, 16:58

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.

Who is online

Users browsing this forum: No registered users and 2 guests