CE-Programming / toolchain

Toolchain and libraries for C/C++ programming on the TI-84+ CE calculator series
https://ce-programming.github.io/toolchain/index.html
GNU Lesser General Public License v3.0
527 stars 53 forks source link

Smaller Text Support #452

Closed CoolModder closed 1 year ago

CoolModder commented 1 year ago

Is there a way to make smaller text? Scale one is too big for the space I am trying to fit it in (Default Font.) Results in: image Text Code:

    if (page == 0)
    {
        gfx_TransparentSprite(up_add, 140, 78);
        gfx_SetTextXY(170, 78);
        gfx_PrintString("Addition Symbol X");
        gfx_PrintUInt(addcount, length(addcount));

        gfx_SetTextXY(170, 88);
        gfx_PrintString("+1 Equation Per Click");
        gfx_SetTextXY(170, 98);
        gfx_PrintString("Wait, there's an upgrade?");
    }
runer112 commented 1 year ago

There's only that one default font. You'd have to provide your own narrower font. You could either supply it to GraphX via gfx_SetFontData and gfx_SetFontSpacing or use the more advanced fontlibc (examples).

CoolModder commented 1 year ago

Thank you!