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: FixedPrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.6.0

Add a New Comment(Rich 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 02 Mar 2016 08:31:25 AM UTC, 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 24 Mar 2015 07:51:11 PM UTC, 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 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):

Attached Files
file #28414:  cutoffs.PNG added by soulsharer (20KiB - 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 02 Mar 2016 08:31:25 AM UTCwlStatusIn Progress=>Fixed
      Planned ReleaseNone=>2.6.0
    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-cleanup1