bugThe FreeType Project - Bugs: bug #39342, Rendering stroke gives a cutoff

 
 

bug #39342: Rendering stroke gives a cutoff

Submitted by:  Yaroslav <soulsharer>
Submitted on:  Tue 25 Jun 2013 06:20:56 PM UTC  
 
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: In ProgressPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Open
Planned Release: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Wed 03 Jul 2013 12:47:57 PM UTC, comment #6:

Yeah its exactly the same code, the only thing I've changed is the font and letter to render (for example "I").

Yaroslav <soulsharer>
Wed 03 Jul 2013 11:17:15 AM UTC, comment #5:

For the ease of debugging: Are you using example2.cpp as-is, just using a different font? Otherwise, can you please post the problematic code so that I can reproduce the issue?

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Wed 03 Jul 2013 11:14:46 AM UTC, comment #4:

David Bevan is no longer in software development, so it will take some time until I will sufficiently understand his code to be able to debug it.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Sat 29 Jun 2013 09:11:08 AM UTC, comment #3:

So I've rendered the stroke with FT_Glyph_Stroke() and FT_Glyph_To_Bitmap() and everything works perfect, not cutoffs what so ever. Maybe there is something wrong with FT_Glyph_StrokeBorder()? But thats just a guess.

Yaroslav <soulsharer>
Wed 26 Jun 2013 05:54:03 AM UTC, comment #2:

I'm not sure whether this isn't expected behaviour, especially due to the extreme cusp at the upper right of the outline of the `H' glyph and friends in `CherryCreamSoda.ttf' (which can be downloaded from http://www.fontspace.com/font-diner/cherry-cream-soda, BTW). I've CCed David Bevan, who has rewritten the code some time ago. It seems to me that this rather qualifies as a documentation bug.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Tue 25 Jun 2013 06:25:46 PM UTC, comment #1:

Forgot to mention that I'm using FreeType 2.5.0

Yaroslav <soulsharer>
Tue 25 Jun 2013 06:20:56 PM UTC, original submission:

So I try to render Cherry Cream Soda TrueType font with a stroke using the example provided here: http://www.freetype.org/freetype2/docs/tutorial/example2.cpp though when I set the width of the stroke for 10 or more it outputs this: http://i.imgur.com/vuUy71l.png

The weird part is that some standard fonts (provided with Windows) doesn't have this issue.

Why is it happening, any idea? Thanks.

Yaroslav <soulsharer>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #28414:  cutoffs.PNG added by soulsharer (20kB - 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 soulsharer (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 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 03 Jul 2013 11:13:40 AM UTCwlCarbon-CopyRemoved -unavailable-=>-
    Wed 26 Jun 2013 05:54:03 AM UTCwlStatusNone=>In Progress
      Assigned toNone=>wl
      Carbon-Copy-=>Added -unavailable-
    Tue 25 Jun 2013 06:20:56 PM UTCsoulsharerAttached File-=>Added cutoffs.PNG, #28414

    Back to the top


    Powered by Savane 3.1-cleanup