In my opinion, I believe that the accepted answer to this question can be either incorrect or misleading. I use Font files in exactly the same way, and I absolutely don't need to set their BuildAction to Resource . My Font files have BuldAction set to Content , and this works just fine. I assume that the accepted answer will only help users who installed their Font file on the EmbeddedResource .
The comment quoted by @sthotakura from the linked MSDN page simply talks about manually editing the project file, which the author of the question does not. Note that the BuildAction property is not mentioned on the linked page, except that the EmbeddedResource value is not valid in this case.
Try this instead:
Set the BuildAction the Font file to Content . Link to a Font file like this (with all the important starting slash):
FontFamily="/Resources/#Open Sans"
I just tried to remove the initial slash in my project, and the Font by default is a different Font , so I'm sure this will work ... anyway, please let me know. I am more than happy to delete this answer if I am mistaken.
source share