Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you specify different font size for each fallback font?

When specifying a fallback font in Silverlight, is it possible to pair it with a font size?

The problem is that different fonts take different amount of space at a given font size. I'd like to be able to provide font size for each fallback font to make them more compatible in terms of space consumption.

like image 881
M.S Avatar asked Jan 31 '26 19:01

M.S


1 Answers

As of Silverlight 4, the answer is No. This is a great idea, and you should push for it! (Go here to request it)

fallbackFontFamilyName value only helps Silverlight FIND a font, not use it.

Here are the docs for FontFamily and FontSource.

XAML allows you to specify PT, or PX as the measurement for every FontSize. However, Silverlight doesn't care, and defaults all font sizes to PX. It would be nice if you could give a specific size for each USE of a font.

+1 for WPF, -1 to consistency

like image 156
Jeremiah Avatar answered Feb 03 '26 11:02

Jeremiah



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!