今天我再次提出同样的问题......尽管我看到了各种帖子和问题,或者得到了关于它的答案,但我仍然找不到答案。
如何在UWP中使用自定义字体?
我已经阅读了教程,但老实说,我感觉像一个只会背诗的孩子!
我尝试了很多,但都没有用......
font = "/Assets/Fonts/Roboto-Light.ttf#Roboto Light";
font = @"\Assets\Fonts\Roboto-Light.ttf#Roboto Light";
font = "./Assets/Fonts/Roboto-Light.ttf#Roboto Light";
font = @".\Assets\Fonts\Roboto-Light.ttf#Roboto Light";
font = "/Fonts/Roboto-Light.ttf#Roboto Light";
font = @"\Fonts\Roboto-Light.ttf#Roboto Light";