You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I render text using FC_DrawColumnEffect(), I like to set effect.scale.x and effect.scale.y. When I make effect.scale.y larger (say 2.0 or 3.0), I notice that the lines between my text get smushed together too closely. When I make effect.scale.y smaller than 1 (say 0.5), the lines are unusually far apart.
I have traced the problem to here in FC_DrawColumnFromBuffer(), which does not take into account scale when determining where next line starts from, but just the unscaled line height:
y += FC_GetLineHeight(font);
I have a one-line PR coming in a minute that fixes this issue.
The text was updated successfully, but these errors were encountered:
waterimp
pushed a commit
to waterimp/SDL_FontCache
that referenced
this issue
Feb 2, 2020
When I render text using
FC_DrawColumnEffect()
, I like to seteffect.scale.x
andeffect.scale.y
. When I makeeffect.scale.y
larger (say2.0
or3.0
), I notice that the lines between my text get smushed together too closely. When I makeeffect.scale.y
smaller than 1 (say0.5
), the lines are unusually far apart.I have traced the problem to here in
FC_DrawColumnFromBuffer()
, which does not take into account scale when determining where next line starts from, but just the unscaled line height:I have a one-line PR coming in a minute that fixes this issue.
The text was updated successfully, but these errors were encountered: