-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect fonts when building on Windows Server Core #714
Comments
Thank you for reporting this. Can you please share your WixSourceGenerated' event to patching solution so I can investigate it? |
Sure, this is what I have at the moment:
The general idea is to use the 'OriginalFontName' of the System.Drawing.Font rather than the translated font name. |
Thank you for the code snippet. Fixed. Will be available in the next release. A small improvement to your work around... You can use if (project.CustomUI == null)
return;
foreach (var textStyle in document.FindAll("TextStyle"))
{
. . . |
Thanks very much. And for the tip about |
We've recently switched some build servers to Windows Server Core and this has switched all of the fonts used in 'CustomUI' installers to 'Lucida Console' (which doesn't look particularly good). Note that we aren't using any custom fonts - just the default of "Tahoma".
What seems to be happening is that Wix# replaces the configured font with an installed font if the configured font is not available at build time. As Server Core only has Lucida Console installed, that is what it always ends up using.
As a temporary workaround we're using the 'WixSourceGenerated' event to patch the generated XML to reset the font to 'Tahoma'.
The text was updated successfully, but these errors were encountered: