bugThe FreeType Project - Bugs: bug #52646, Invalid font when using FreeType

 
 

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

bug #52646: Invalid font when using FreeType

Submitter:  Vinit Singh <vinitsingh12>
Submitted:  Tue 12 Dec 2017 06:36:50 AM UTC
   
 
Severity:  3 - Normal Item Group:  None
Status:  Works For Me Privacy:  Public
Assigned to:  wl Open/Closed:  Closed
Planned Release:  None

Tue 19 Dec 2017 06:04:27 AM UTC, comment #5: 

Thanks a lot Werner.
The change worked.

Vinit Singh <vinitsingh12>
Mon 18 Dec 2017 10:38:05 PM UTC, comment #4: 

Oops!  I believed that `ftview' uses `FT_Get_Next_Char', however, my memory failed me...

You have indeed discovered a quite obscure bug that I've just fixed in the git repository.  Thanks for being persistent, and please test!

Werner LEMBERG <wl>
Group administrator
Mon 18 Dec 2017 07:52:07 PM UTC, comment #3: 

Hi Werner,
 
I am using the charmap from the source file to get the next charcater code using FT_Get_Next_Char but this leads to wrong values.

Can you please help me with the steps you are using to render the fonts if or not using cmap as you say "the font renders just fine".

Vinit Singh <vinitsingh12>
Thu 14 Dec 2017 05:12:15 AM UTC, comment #2: 

I am still investigating the problem from my side.

The problem occurs when fetching the character code and glyph indices using FT_Get_First_Char and FT_Get_Next_Char from cmap.

Might be a problem with cmap construction.
Will come back to you if I find anything more on this.

Vinit Singh <vinitsingh12>
Wed 13 Dec 2017 04:34:50 PM UTC, comment #1: 

You haven't mentioned which FreeType version you are using...

Using current git version (and some older versions also), the font renders just fine – and the PDF also, showing the word `Huma'.

I'm closing this report.  Please update your FreeType version.

If you still have issues, please describe your environment in much greater detail!

Werner LEMBERG <wl>
Group administrator
Tue 12 Dec 2017 06:36:50 AM UTC, original submission:  

I am trying to render TrueType Fonts with FreeType library.

For one of the pdf files, I am getting blank rectangles.

I have attached the pdf file, output and the  .ttf.

Please look into this issue on an urgent basis.

Vinit Singh <vinitsingh12>

 

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

Attached Files
file #42615:  Test.pdf added by vinitsingh12 (876KiB - application/pdf)
file #42616:  Output.tif added by vinitsingh12 (728B - image/tiff)
file #42617:  test.ttf added by vinitsingh12 (109KiB - application/octet-stream)

 

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 vinitsingh12 (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.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-12-13 wl StatusNone Works For Me
        Assigned toNone wl
        Open/ClosedOpen Closed
    2017-12-12 vinitsingh12 Attached File- Added Test.pdf, #42615
        Attached File- Added Output.tif, #42616
        Attached File- Added test.ttf, #42617

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code