Bug #1337
HiDPI FontInfo problem
Status: | Approved | Start date: | 11/15/2015 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Miroslav Fidler | % Done: | 0% | |
Category: | Draw | Spent time: | - | |
Target version: | Release 2015.2 - NTH |
Description
After investigating upp template in ide i found interesting issue:
FontInfo fi = CourierZ(12).Info(); sb.SetTotal(line.GetCount()); sb.SetPage(GetSize().cy / fi.GetHeight());
is not the same as:
sb.SetTotal(line.GetCount()); sb.SetPage(GetSize().cy / CourierZ(12).GetHeight());
Related issues
History
#1 Updated by Zbigniew Rebacz over 9 years ago
What is interesting is that "CourierZ(12).Info().GetHeight()" returns 17 on my configuration, but "CourierZ(12).GetHeight()" returns 14.
#2 Updated by Miroslav Fidler over 9 years ago
- Status changed from New to Approved
Well, FontInfo is obsolete... and behaviour is correct.
I have fixed AppPreview...