wpf - How do I reference a font resource in a satellite assembly? -


i have localised wpf application , need embed font each locale. have font added project , it's build action set resource. if remove <uiculture>en-us</uiculture> .csproj (which eliminates creation of satellite assemblies) font compiled resource project assembly. can add font by:

<button content="my button" fontfamily="fonts/#frutiger lt 87 extrablackcn" /> 

this works perfectly. if add en-us .csproj font gets added localised satelite assembly.

<button x:uid="button1" content="my button" fontfamily="fonts/#frutiger lt 87 extrablackcn" /> 

no longer works.

how should referencing localised font?

while not directly answer question, msdn page on wpf globalization , localization overview seems recommends you:

create customized composite font obtain better control of fonts used different languages.

the idea use single, "composite", font contains fonts languages might want use. more information on composite fonts (including examples), see fontfamily documentation on msdn.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -