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 Jun 25 18:20:56 2013  
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.6.0

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 Mar 2 08:31:25 2016, comment #8:

No response since almost a year, thus I'm closing this bug report as resolved. Please feel free to reopen it if you can provide more details of a failure.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Tue Mar 24 19:51:11 2015, comment #7:

I have a feeling that the recently fixed bug 44412 was a duplicate of this bug. Perhaps, you can test the current snapshot. Alternatively, you can test this patch http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=6b832c872d9726fd3f0979b3f95c7fa618fb50f2

Alexei Podtelezhnikov <podtelez>
Project Member
Wed Jul 3 12:47:57 2013, 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 Jul 3 11:17:15 2013, 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 Jul 3 11:14:46 2013, 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 Jun 29 09:11:08 2013, 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 Jun 26 05:54:03 2013, 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 Jun 25 18:25:46 2013, comment #1:

Forgot to mention that I'm using FreeType 2.5.0

Yaroslav <soulsharer>
Tue Jun 25 18:20:56 2013, 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):

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 podtelez (Posted a comment)
  • -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 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed Mar 2 08:31:25 2016wlStatusIn Progress=>Fixed
      Planned ReleaseNone=>2.6.0
    Wed Jul 3 11:13:40 2013wlCarbon-CopyRemoved -unavailable-=>-
    Wed Jun 26 05:54:03 2013wlStatusNone=>In Progress
      Assigned toNone=>wl
      Carbon-Copy-=>Added -unavailable-
    Tue Jun 25 18:20:56 2013soulsharerAttached File-=>Added cutoffs.PNG, #28414

    Back to the top

    Powered by Savane 3.1-cleanup1