float dpix, dpiy;
this.GetDpi(out dpix, out dpiy);
- this.format = new DW.TextFormat(D2DRenderShared.DWFactory, fontName, fontWeigth, fontStyle, fontSize);
+ float fontSizeInDIP = fontSize * (dpix / 72.0f);
+ this.format = new DW.TextFormat(D2DRenderShared.DWFactory, fontName, fontWeigth, fontStyle, fontSizeInDIP);
this.format.WordWrapping = DW.WordWrapping.NoWrap;
this.format.ReadingDirection = GetDWRightDirect(_RightToLeft);