bugThe FreeType Project - Bugs: bug #44550, Distinguish real missing...

 
 

bug #44550: Distinguish real missing character from real character with glyph index 0

Submitted by:  Dimitrios Papadopoulos <dipapado>
Submitted on:  Mon 16 Mar 2015 01:09:14 PM UTC  
 
Severity: 3 - NormalItem Group: Wishlist
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.

 

Mon 16 Mar 2015 04:54:56 PM UTC, comment #1:

Such a question belongs to the FreeType user mailing list, not to the bug tracker...

You are misunderstanding the interface.

If you try to access a font by character code with FT_Get_Char_Index, return value 0 means that there is no glyph in the font for this character code.

If you try to access a font by glyph index with FT_Load_Glyph, a value larger than the number of glyphs makes this function return an error.

Finally, if you try to access a font by glyph name with FT_Get_Name_Index, return value 0 means that there is no glyph in the font with this name.

In case you still have questions please discuss this on the mailing list.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Mon 16 Mar 2015 01:09:14 PM UTC, original submission:

I would like to know if a character exists on the font or not.
With the current implementation we can not know if it is really missing character or it is real character with glyph index 0.

Can we define something like FT_INDEX_NOT_FOUND 0xFFFFFFFFU and return it in case of real missing character? Or something that inform us that the character doesn't exist on the font.

A new function is also welcome.

Dimitrios Papadopoulos <dipapado>

 

(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 dipapado (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 16 Mar 2015 04:54:56 PM UTCwlStatusNone=>Invalid
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1