Custom Font in Windows Phone 8

前端 未结 4 1773
遇见更好的自我
遇见更好的自我 2021-01-24 00:44

I tried to add a custom font into my application. I need it for the page title. I copied the font to a folder named \"Fonts\" and changed the build action to Content. In the pro

4条回答
  •  青春惊慌失措
    2021-01-24 01:47

    If the font is located in your main WP8 project, you don't need to use the /AppName;component path. Also make sure the Dekers_Bold is actually name of the font, you should maybe try DekersBold or just Dekers:

    FontFamily="/Assets/Fonts/Dekers_Bold.ttf#DekersBold"
    

    If this is not working, try to add your font as resources first:

    /Assets/Fonts/Dekers_Bold.ttf#DekersBold
    ...
     
    

提交回复
热议问题