bugThe FreeType Project - Bugs: bug #46296, Subglyphs not placed correctly

 
 

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

bug #46296: Subglyphs not placed correctly

Submitter:  Evan <verdagon>
Submitted:  Mon 26 Oct 2015 03:33:53 AM UTC
   
 
Severity:  3 - Normal Item Group:  None
Status:  Invalid Privacy:  Public
Assigned to:  wl Open/Closed:  Closed
Planned Release:  None

Tue 01 Mar 2016 02:33:29 PM UTC, comment #3: 

Since there was no further response, I'm closing this bug report as invalid.

Werner LEMBERG <wl>
Group administrator
Thu 11 Feb 2016 06:22:58 AM UTC, comment #2: 

Any progress?

Werner LEMBERG <wl>
Group administrator
Mon 26 Oct 2015 02:55:01 PM UTC, comment #1: 

Except if you are using some old Apple font (which you obviously don't do), my crystal ball says there's certainly a problem with your code.  Please have a look how the FreeType demo programs are working.

In case the issue persists, please provide a small, stand-alone, compilable program (without using any graphics library) that demonstrates the wrong placement.

Werner LEMBERG <wl>
Group administrator
Mon 26 Oct 2015 03:33:53 AM UTC, original submission:  

I find that freetype2 doesn't handle subglyphs' placements correctly (or I'm perhaps using it wrong). When I try to render the 'Ã', the A with the tilde on top of it, I get this:

http://i.imgur.com/3pkYfO3.png Ignore the little tails and red text everywhere; the point is that the tilde is intersecting with the A.

When I specify the FT_LOAD_NO_RECURSE flag, and then add the two subglyphs on my own (using the offsets from arg1 and arg2 from FT_Get_SubGlyph_Info), it's correct: http://i.imgur.com/TrjgHVs.png

It's a similar story with almost every other compound character.

Perhaps relevant: the exact calls I'm using are:

FT_Library library = { };
FT_Init_FreeType(&library);
...
FT_Face face = { };
FT_New_Face(library, "arial.ttf", 0, &face);
...
FT_Set_Char_Size(face, 10, 10, 72, 72);
...
FT_Load_Glyph(face, glyphIndex, FT_LOAD_NO_BITMAP);

Evan <verdagon>

 

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

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    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.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-03-01 wl StatusNeed Info Invalid
        Open/ClosedOpen Closed
    2015-10-26 wl StatusNone Need Info
        Assigned toNone wl
    2015-10-26 verdagon Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code