• R/O
  • HTTP
  • SSH
  • HTTPS

FooEditEngine: Commit


Commit MetaInfo

Revision18c3aa0f765609687ea171ef3387308afa61f22a (tree)
Time2021-01-08 00:50:03
Authortest <test@yaho...>
Commitertest

Log Message

フォントサイズの計算がおかしかった

Change Summary

Incremental Difference

--- a/Core/Direct2D/D2DRenderCommon.cs
+++ b/Core/Direct2D/D2DRenderCommon.cs
@@ -244,7 +244,8 @@ namespace FooEditEngine
244244 float dpix, dpiy;
245245 this.GetDpi(out dpix, out dpiy);
246246
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);
248249 this.format.WordWrapping = DW.WordWrapping.NoWrap;
249250 this.format.ReadingDirection = GetDWRightDirect(_RightToLeft);
250251
Show on old repository browser