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

 
 

bug #46296: Subglyphs not placed correctly

Submitted by:  Evan <verdagon>
Submitted on:  Mon 26 Oct 2015 03:33:53 AM UTC  
 
Severity: 3 - NormalItem Group: None
Status: InvalidPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

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>
Project AdministratorIn charge of this item.
Thu 11 Feb 2016 06:22:58 AM UTC, comment #2:

Any progress?

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 01 Mar 2016 02:33:29 PM UTCwlStatusNeed Info=>Invalid
      Open/ClosedOpen=>Closed
    Mon 26 Oct 2015 02:55:01 PM UTCwlStatusNone=>Need Info
      Assigned toNone=>wl
    Mon 26 Oct 2015 03:33:53 AM UTCverdagonCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1