Skip to content

C2D_DrawText line height inconsistency #46

@CyberYoshi64

Description

@CyberYoshi64

https://github.com/devkitPro/citro2d/blob/master/source/text.c#L329-L341

I'm pretty sure the ceilf() can be omitted (as well as in C2D_TextGetDimensions to keep consistency) without consequences to allow the text to smoothly scale without the lines visibly jumping.

I've done it myself and not found any issues so far.

Here's a video of a homebrew dialog box I made to showcase this issue:
https://cdn.discordapp.com/attachments/329983699804487681/1173802183494479912/cyxlaunchtest1.mp4?ex=65654778&is=6552d278&hm=2c0363ae6136044a80455738b793045ad1128feeb11052a5a8a8c588708ef4fa&

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions