Bug #1337

HiDPI FontInfo problem

Added by Zbigniew Rebacz almost 8 years ago. Updated almost 8 years ago.

Status:ApprovedStart date:11/15/2015
Priority:NormalDue date:
Assignee:Miroslav Fidler% Done:


Category:DrawSpent time:-
Target version:Release 2015.2 - NTH


After investigating upp template in ide i found interesting issue:

FontInfo fi = CourierZ(12).Info();

sb.SetPage(GetSize().cy / fi.GetHeight());

is not the same as:

sb.SetPage(GetSize().cy / CourierZ(12).GetHeight());

Related issues

Duplicated by Bug #1321: Scrollbar in upp template dosen't work Approved 11/03/2015


#1 Updated by Zbigniew Rebacz almost 8 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 almost 8 years ago

  • Status changed from New to Approved

Well, FontInfo is obsolete... and behaviour is correct.

I have fixed AppPreview...

Also available in: Atom PDF