discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hang in font panel with certain fonts


From: Fred Kiefer
Subject: Re: Hang in font panel with certain fonts
Date: Sun, 18 Jan 2015 18:31:26 +0100

Sorry, you only show these values for the first iteration. In a loop we need to 
see whether these values change or not. Most likely the second iteration has 
the exact same values. In that case we are looking at a rounding issue. It 
seems like ascender plus descender are bigger than line_height, but when 
assigning this sum to line_height this condition is still true.
Could you please first verify whether this is true and next find out if your 
computer uses float or double for CGFloat? The next step might then be to get 
David to look at the assembler code the macro gets converted into.

Fred

On the road

Am 18.01.2015 um 15:19 schrieb Riccardo Mottola <riccardo.mottola@libero.it>:

> Hi,
> 
> Fred Kiefer wrote:
>> Now we are getting closer, could you please also output the values of 
>> line_height and max_line_height before the macro? Maybe your font is bigger 
>> than allowed?
>> You should also output both ascender and descender there and maybe y too, 
>> just to make sure.
> I modified the printout to add the information you want.
> a = ascender
> d = descender
> y = y
> lineh = line_height
> maxl = max_line_height
> 
> Just before the macro call.
> 
> 2015-01-18 15:18:59.830 Ink[2103] Main glyph layout loop. i:0
> 2015-01-18 15:18:59.832 Ink[2103] 2-WantLineHeight a:10.285714, d:2.571429, 
> y:0.000000 | lineh: 12.857142, maxl: 0.000000
> 2015-01-18 15:18:59.834 Ink[2103] f_ascender: 10.285714
> 2015-01-18 15:18:59.836 Ink[2103] Main glyph layout loop. i:0
> 
> 
> Here an output session when things "work" (just printing out stuff in the 
> user interface):
> 
> 2015-01-18 15:16:43.676 Ink[2103] Main glyph layout loop. i:10
> 2015-01-18 15:16:43.678 Ink[2103] 2-WantLineHeight a:11.000000, d:3.000000, 
> y:0.000000 | lineh: 14.000000, maxl: 0.000000
> 2015-01-18 15:16:43.681 Ink[2103] 2-WantLineHeight completed
> 
> Notice how y and maxl are 0 here too.
> 
> Riccardo
> 
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnustep



reply via email to

[Prev in Thread] Current Thread [Next in Thread]