Revision | 18c3aa0f765609687ea171ef3387308afa61f22a (tree) |
---|---|
Time | 2021-01-08 00:50:03 |
Author | test <test@yaho...> |
Commiter | test |
フォントサイズの計算がおかしかった
@@ -244,7 +244,8 @@ namespace FooEditEngine | ||
244 | 244 | float dpix, dpiy; |
245 | 245 | this.GetDpi(out dpix, out dpiy); |
246 | 246 | |
247 | - this.format = new DW.TextFormat(D2DRenderShared.DWFactory, fontName, fontWeigth, fontStyle, fontSize); | |
247 | + float fontSizeInDIP = fontSize * (dpix / 72.0f); | |
248 | + this.format = new DW.TextFormat(D2DRenderShared.DWFactory, fontName, fontWeigth, fontStyle, fontSizeInDIP); | |
248 | 249 | this.format.WordWrapping = DW.WordWrapping.NoWrap; |
249 | 250 | this.format.ReadingDirection = GetDWRightDirect(_RightToLeft); |
250 | 251 |