Skip to content

Conversation

Yaraslaut
Copy link
Member

Closes #1115
See https://freetype.org/freetype2/docs/reference/ft2-base_interface.html#ft_glyphslotrec
bitmap_top can be negative, meaning that glyph direction is downward, this PR fixes the crash when contour can not display such glyphs, this is itself a hack since this is not how properly handle this case i suppose.
For example such figures still can be generated in contour
image

@github-actions github-actions bot added the VT: rasterizer Rendering of the terminal into a pixmap using `terminal_renderer` library label Jun 7, 2023
@christianparpart
Copy link
Member

Oh. Many thanks. Do we know how that should look like ideally? So we have something to work towards?

Copy link
Member

@christianparpart christianparpart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but I also didn't have too much time deeply understanding the root of this issue.

Yaraslaut and others added 2 commits June 8, 2023 17:44
Co-authored-by: Christian Parpart <christian@parpart.family>
@Yaraslaut Yaraslaut enabled auto-merge (squash) June 9, 2023 19:02
Copy link
Member

@christianparpart christianparpart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks :)

@christianparpart christianparpart merged commit e25a625 into master Jun 11, 2023
@christianparpart christianparpart deleted the fix/1115 branch June 11, 2023 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
VT: rasterizer Rendering of the terminal into a pixmap using `terminal_renderer` library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Glyphs overlap and crash
2 participants