Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>In WPF for fonts there are static and dynamic linking. It all can be defined in Blend. With static linking of fonts only needed characters are compiled and embedded in your assembly. With dynamic linking all font set is embedded. So try to set static linking for selected fonts and try if it works.</p> <p><strong>UPD</strong></p> <p>Try to add the following code into you <code>.csproj</code> file. Here we including Tahoma fonts. AutoFill property set to true says that we will embed in assembly only used characters of our controls. The set of chars in <code>&lt;Charachters/&gt;</code> tag fill point to include these chars into assembly. All other tags set to false, because we don't need them.</p> <pre><code>&lt;ItemGroup&gt; &lt;BlendEmbeddedFont Include="Fonts\tahoma.ttf"&gt; &lt;IsSystemFont&gt;True&lt;/IsSystemFont&gt; &lt;All&gt;False&lt;/All&gt; &lt;AutoFill&gt;True&lt;/AutoFill&gt; &lt;Characters&gt;dasf&lt;/Characters&gt; &lt;Uppercase&gt;False&lt;/Uppercase&gt; &lt;Lowercase&gt;False&lt;/Lowercase&gt; &lt;Numbers&gt;False&lt;/Numbers&gt; &lt;Punctuation&gt;False&lt;/Punctuation&gt; &lt;/BlendEmbeddedFont&gt; &lt;BlendEmbeddedFont Include="Fonts\tahomabd.ttf"&gt; &lt;IsSystemFont&gt;True&lt;/IsSystemFont&gt; &lt;All&gt;False&lt;/All&gt; &lt;AutoFill&gt;True&lt;/AutoFill&gt; &lt;Characters&gt;dasf&lt;/Characters&gt; &lt;Uppercase&gt;False&lt;/Uppercase&gt; &lt;Lowercase&gt;False&lt;/Lowercase&gt; &lt;Numbers&gt;False&lt;/Numbers&gt; &lt;Punctuation&gt;False&lt;/Punctuation&gt; &lt;/BlendEmbeddedFont&gt; &lt;/ItemGroup&gt; &lt;Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /&gt; &lt;Import Project="$(MSBuildExtensionsPath)\Microsoft\Expression\Blend\3.0\WPF\Microsoft.Expression.Blend.WPF.targets" /&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload