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

 
 

bug #52646: Invalid font when using FreeType

Submitted by:  Vinit Singh <vinitsingh12>
Submitted on:  Tue 12 Dec 2017 06:36:50 AM UTC  
 
Severity: 3 - NormalItem Group: None
Status: Works For MePrivacy: 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 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>
Project AdministratorIn charge of this item.
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>
Project AdministratorIn charge of this item.
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.)

Attach File(s):
   
   
Comment:
   

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
  • -unavailable- added by wl (Posted a comment)
  • -unavailable- added by vinitsingh12 (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 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 13 Dec 2017 04:34:50 PM UTCwlStatusNone=>Works For Me
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
    Tue 12 Dec 2017 06:37:26 AM UTCvinitsingh12Attached 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.1-cleanup1