bugGNUstep - Bugs: bug #23661, Font size mismatch between cairo...


bug #23661: Font size mismatch between cairo and art

Submitted by:  Quentin Mathé <qmathe>
Submitted on:  Sat 21 Jun 2008 10:49:48 AM UTC  
Category:  Backend Severity:  3 - Normal
Item Group:  Bug Status:  Invalid
Privacy:  Public Assigned to:  None
Open/Closed:  Declined

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Thu 26 Dec 2013 02:54:33 PM UTC, comment #5: 

I declined this bug as it was rather a cairo problem and with newer version of that library it seems to be resolved.

Fred Kiefer <FredKiefer>
Project Member
Tue 19 Aug 2008 02:34:02 PM UTC, comment #4: 

I checked through the cairo commit log, but couldn't find anything related to the problem. Not sure, when it got fixed and how. That makes it harder to add a work around for older cairo libraries.

When I commited some changes to CairoFontInfo.m I also added a commented out scale instruction. Could you please play with that line a bit? When we are sure, that a proper value here would adjust your cairo fonts to a similar size as the art fonts, then we could add something here for older cairo versions.
It could as well be that not the font size was incorrect, but the reported metrics for that font. In that case you would get a similar layout as with art, but the font itself would be smaller. Could you please report back on that?

Fred Kiefer <FredKiefer>
Project Member
Thu 26 Jun 2008 12:02:07 AM UTC, comment #3: 

Hi Fred,

My cairo version 1.4.10. For the resolution, I tried several ones like 1152 * 864 without observing a difference for the font sizing. My Ubuntu install runs inside VMWare (with VMWare tools installed), not really sure but this may affect the rendering of cairo. The screen resolution can also vary when I resize the VM window.

If scaling the font matrix can eliminate the issue, I think it could be worth to do.

Quentin Mathé <qmathe>
Project Member
Wed 25 Jun 2008 03:38:01 PM UTC, comment #2: 

I checked on Ubuntu 8.04 with cairo 1.6.0 (It works as long as I don't use ffcall). There the height of the same font looks the same for both backends. There is a difference in the width of the menu though, not sure what is causing this.

If I don't hear back from you I will be closing this bug report, as it doesn't seem to be a GNUstep problem.

What we could try to do is scale down the font matrix with the screen resolution for old cairo systems. Does this sound like something we should do?

Fred Kiefer <FredKiefer>
Project Member
Wed 25 Jun 2008 07:50:50 AM UTC, comment #1: 

Could you please specify your cairo version and your screen resolution?

I am able to reproduce this behaviour on cairo 1.4.10, but cannot see any issues in our code. We request a 12 pixel font and get back one with 14. Maybe that cairo version does font size for the freetype case in point size not pixel size as specified?
I am about to test this on cairo 1.6.0, but currently I have some issues with GNUstep on Ubuntu (The usual ffcall, but this time on a 32-bit system) and will only make progress, when this is resolved.

Fred Kiefer <FredKiefer>
Project Member
Sat 21 Jun 2008 10:49:48 AM UTC, original submission:  

Ubuntu 7.10 (Gutsy) x86
GCC 4.1.3
base, back, gui, gorm: r26686

For cairo backend, the font size is bigger than with art backend (or may be the font is different...). This prevents the top border of the tabs to be properly drawn, as visible in the attached screenshot 'class-editor-cairo'. In my opinion, it also makes the overall look of the GNUstep UI less good and polished than with backart.


Quentin Mathé <qmathe>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #15897:  class-editor-cairo.png added by qmathe (23KiB - image/png)
file #15898:  class-editor-backart.png added by qmathe (23KiB - image/png)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by FredKiefer (Posted a comment)
  • -email is unavailable- added by qmathe (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-12-26 FredKiefer StatusNone => Invalid
        Open/ClosedOpen => Declined
    2008-06-21 qmathe Attached File- => Added class-editor-cairo.png, #15897
        Attached File- => Added class-editor-backart.png, #15898

    Back to the top

    Powered by Savane 3.5