bugGNUstep - Bugs: bug #47109, Cairo/Windows: Unexpected DPI may...


bug #47109: Cairo/Windows: Unexpected DPI may cause font rendering issues

Submitter:  Ivan Vučica <ivucica>
Submitted:  Wed 10 Feb 2016 03:49:39 PM UTC
Category:  Backend Severity:  2 - Minor
Item Group:  Bug Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

Wed 10 Feb 2016 04:40:43 PM UTC, comment #1: 

If someone wants to continue looking into fixing this, I've spent a few minutes trying to track this down completely blindly (i.e. I didn't actually run any code).

The number 16 in '16 characters until whitespace appears' seems to come from:
method -drawGlyphsForGlyphRange:atPoint: line "#define GBUF_SIZE 16 /* TODO: tweak */".

Combined with Riccardo's mention that this may be related to DPI, and following the call to C function GSShowGlyphsWithAdvances() from
I'd say the fixer will want to look at
method -GSShowGlyphsWithAdvances:::, and
method -drawGlyphs:length:on:.

Ivan Vučica <ivucica>
Group Member
Wed 10 Feb 2016 03:49:39 PM UTC, original submission:  

From James Carthew:
"Attached is a picture showing the rendering error. This was generated using the pre-built windows files from the GNUstep website. "

Commentary from Riccardo:

I am pretty sure you have a resolution problem, I have seen this several times on windows (and also on X11 on one FreeBSD workstation).

Please set your Windows to "100%" and do not enlarge text and icons.

For some reason, we enlarge the controls, but then use a small font to draw the text. It would be best of course to "scale" up also the the font, or, at least to ignore the resize and keep everything pixels-sized to GNUstep, but currently it is hybrid.


Commentary from me:
"Odd whitespace in the middle of a word is also a bug. It seems to happen after exactly 16 glyphs."

Ivan Vučica <ivucica>
Group Member


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

Attach Files:

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by ivucica (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-10 ivucica Attached File- Added 47c19cd2-0e50-400c-982f-a8a52df8c17b.png, #36298

    Back to the top

    Powered by Savane 3.13-6ae7.
    Corresponding source code