bugThe FreeType Project - Bugs: bug #36634, improve documentation

 
 

bug #36634: improve documentation

Submitted by:  Joshua Richardson <jric>
Submitted on:  Mon 11 Jun 2012 10:36:02 PM UTC  
 
Severity: 3 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.4.10

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 12 Jun 2012 06:08:33 AM UTC, comment #1:

Applied, thanks!

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Mon 11 Jun 2012 10:36:02 PM UTC, original submission:

The documentation for FT_Get_Char_Index in docs/reference/ft2-base_interface.html, has a note that says:

If you use FreeType to manipulate the contents of font files directly, be aware that the glyph index returned by this function doesn't always correspond to the internal indices used within the file. This is done to ensure that value 0 always corresponds to the ‘missing glyph’.

That was useful to know, but I think this would be even more useful:

If you use FreeType to manipulate the contents of font files directly, be aware that the glyph index returned by this function doesn't always correspond to the internal indices used within the file. This is done to ensure that value 0 always corresponds to the ‘missing glyph’. If the first glyph is not named ".notdef", then for Type1 and Type42 fonts, .notdef will be moved into GID 0 position, and whatever was there will be moved to the position ".notdef" had. For Type1 fonts, if there is no .notdef glyph at all, then one will be created at index 0 and whatever was there will be moved to the last index -- Type42 fonts are considered invalid under this condition.

Joshua Richardson <jric>

 

(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 jric (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
    Tue 12 Jun 2012 06:08:33 AM UTCwlStatusNone=>Fixed
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.4.10

    Back to the top


    Powered by Savane 3.1-cleanup1