react-native-windows-samples icon indicating copy to clipboard operation
react-native-windows-samples copied to clipboard

Glyph documentation should describe packaging font file/fontUri requirement

Open asklar opened this issue 3 years ago • 3 comments

The Glyph documentation mentions fontUri, it's marked as not required, but we also don't have instructions that if you specify a fontUri, you have to package the font with your UWP app (and how to do that in VS).

asklar avatar Oct 01 '20 08:10 asklar

You shouldn't have to use VS to do that. You should be able to use require('./myfonts/foo.ttf') and the packager and default configs should manage everything for you, as it does with images. -- Not sure if that works today.

We should also document how to do it using ms-appx:// urls when you have done it through VS.

acoates-ms avatar Oct 01 '20 15:10 acoates-ms

in the case I was looking at, it was an ms-appx uri

asklar avatar Oct 01 '20 15:10 asklar

Document only gives the context of "string". Yeah, that could give any detail and it'd be better.

chrisglein avatar Oct 12 '20 18:10 chrisglein