Quantcast
Channel: wixsharp Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1354

New Post: How to install fonts?

$
0
0
> I hooked onto the WixSourceGenerated event and modified the XDocument file to correct the font source to Source="C:\Windows\Fonts\Roboto-Light.ttf" from Source="..................\Windows\Fonts\Roboto-Light.ttf". This corrected the issue, the font installed correctly once this was done. Perhaps a bug?
I only noticed this post.

You don't have to resort to WixSourceGenerated when relative path is a challenge. You can place the full path directly to the file constructor. I know it seems that it didn't work in your case but when I modified the code sample to include one of the system fonts like this:
new Dir("%Fonts%", 
    new File(@"C:\Windows\Fonts\yuminl.ttf")
It actually preserved the path as expected:
<ComponentId="Component.yuminl.ttf"Guid="6f330b47-2577-43ad-9095-18616b080af8"><FileId="yuminl.ttf"Source="C:\Windows\Fonts\yuminl.ttf"/></Component>
Thus I am not sure about the cause of that conversion to the relative path in your sample.

Viewing all articles
Browse latest Browse all 1354

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>