<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>at12k313</author_name>
  <author_url>https://blog.hatena.ne.jp/at12k313/</author_url>
  <blog_title>まめ - たんたんめん</blog_title>
  <blog_url>https://p4j4.hatenablog.com/</blog_url>
  <categories>
    <anon>WPF</anon>
  </categories>
  <description>WPF にはUseLayoutRoundingというプロパティがあり、ルート要素 (MainWindow等)で trueにすると文字や絵が滲まなくなることは有名だが DrawingContextを使って独自に文字列を描画している場合は滲んでしまう。 この対策としてルート要素に下記Propertyを指定しておけば文字が滲まなくなる。 TextOptions.TextFormattingMode=&quot;Display&quot; TextOptions.TextRenderingMode=&quot;ClearType&quot; 微妙なのでわかりづらいのだが 「４」が露骨につぶれなくなっているのが分かる。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fp4j4.hatenablog.com%2Fentry%2F2020%2F04%2F06%2F162652&quot; title=&quot;WPF DrawingContext.DrawText()で書いたテキストが滲む - まめ - たんたんめん&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/a/at12k313/20200406/20200406162617.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-06 16:26:52</published>
  <title>WPF DrawingContext.DrawText()で書いたテキストが滲む</title>
  <type>rich</type>
  <url>https://p4j4.hatenablog.com/entry/2020/04/06/162652</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
