Skip to content

stb_truetype: stbtt_GetPackedQuad doesn't seem to stick to baseline #1723

Answered by forksnd
forksnd asked this question in Q&A
Discussion options

You must be logged in to vote

Fixed! There were two issues:

  1. The floats were getting cast to ints deep in the GPU pipeline. (I forgot that the previous font code dealt with pixel-coordinates)
  2. I had set align_to_integer in stbtt_GetPackedQuad to true.

Removing the cast and setting align_to_integer to false seems to have fixed the issue.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@forksnd
Comment options

@nothings
Comment options

@forksnd
Comment options

Answer selected by forksnd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants