Bug #1337

HiDPI FontInfo problem

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

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

0%

Category:DrawSpent 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

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

History

#1 Updated by Zbigniew Rebacz almost 5 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 5 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