bugThe FreeType Project - Bugs: bug #36813, Glyph outline and path...

 
 

bug #36813: Glyph outline and path decomposition is incorrect

Submitted by:  Jozef Baranec <joxy>
Submitted on:  Sun 08 Jul 2012 09:30:12 PM UTC  
 
Severity: 3 - NormalItem Group: Incorrect behaviour
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 10 Jul 2012 06:36:24 AM UTC, comment #3:

I've extended the documentation of FT_LOAD_NO_SCALE, thanks.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Mon 09 Jul 2012 08:19:18 PM UTC, comment #2:

Thanks for your comment. It worked out.

Originaly I was loading glyphs using FT_LOAD_NO_SCALE flag only. Using this flag I was getting glyph points I attached previously. (BTW: I simply extracted them from the watch window during debugging.)

Now my glyphs are nice. Thanks Again.

joxy

Jozef Baranec <joxy>
Sun 08 Jul 2012 11:08:02 PM UTC, comment #1:

This is a font which we call `tricky': It must always be hinted since the bytecode instructions are used to position and scale the subglyphs.

To get a reasonable outline which you can process further, load this font at the EM size, this is, at 1024px for this font. Then you can directly use the resulting outline coordinate values as font units.

It would be nice if you can provide documentation improvements which might help other users too. And what exactly was the code to produce the attached txt file?

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Sun 08 Jul 2012 09:30:12 PM UTC, original submission:

Hi

I'm displaying one glyph from attached font file (glyph index 1612).
When I use birmap generated output glyph looks fine, but when I want to use outline based source, I get strange results and path decomposition seems to be incorrect. I will attach also screenshot for comparison.
I also tried different freetype versions and attached is also a text file with all points from the outline point array. You can see the difference between version 2.3.9 and 2.4.9, but none of them is correct on the output. Bitmap based output on the left, outline based on the right.

Currently I run on 2.4.9 version. I have a bunch of fonts with similar problem and most (if not all) of them are chinese fonts.

joxy

Jozef Baranec <joxy>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #26168:  f1.ttf added by joxy (276KiB - application/octet-stream)
file #26169:  path_from_glyph1612.txt added by joxy (2KiB - text/plain)
file #26170:  glyph1612.png added by joxy (7KiB - image/png)

 

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

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 10 Jul 2012 06:36:24 AM UTCwlStatusWorks For Me=>Invalid
      Open/ClosedOpen=>Closed
    Sun 08 Jul 2012 11:08:02 PM UTCwlStatusNone=>Works For Me
      Assigned toNone=>wl
    Sun 08 Jul 2012 09:30:12 PM UTCjoxyAttached File-=>Added f1.ttf, #26168
      Attached File-=>Added path_from_glyph1612.txt, #26169
      Attached File-=>Added glyph1612.png, #26170

    Back to the top


    Powered by Savane 3.1-cleanup1