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

 
 

You are not allowed to post comments on this tracker with your current authentification level.

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: BackendSeverity: 3 - Normal
Item Group: BugStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Declined

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.

Quentin Mathé <qmathe>
Project Member

 

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 26 Dec 2013 02:54:33 PM UTCFredKieferStatusNone=>Invalid
      Open/ClosedOpen=>Declined
    Sat 21 Jun 2008 10:49:48 AM UTCqmatheAttached File-=>Added class-editor-cairo.png, #15897
      Attached File-=>Added class-editor-backart.png, #15898

    Back to the top


    Powered by Savane 3.1-cleanup