Open the-wazz opened 3 years ago
Btw, I got fonts working in Android, I think by just adding fonts to the Assets folder. I've tried so many things I'm not sure now what fixed it. Possibly the IDE didn't see the new files, which is why I asked that last question. I found a question on SO about it (possibly you posted an answer? I forget). The files had a dotted border and I had to explicitly say 'Include in Project'. Not sure if that was the fix for sure.
Edit: I got it working by using FontFamily="ms-appx:///Assets/Fonts/font-file.ttf#Font Name"
, from the article here. I'm pretty sure I tried it before. I guess I did something wrong.
I have (at least) a couple of problems getting this to work. Fixing one of these might solve the other, and vice-versa, I don't know.
Q. When I add fonts to the new folder, should I copy them into the new fonts folder via Windows Explorer, or can I paste directly into the Visual Studio IDE folder? Not sure if that matters. (I also don't see a 'refresh' button in the IDE solution explorer that I'm used to seeing in web dev...)