ArduinoMenu icon indicating copy to clipboard operation
ArduinoMenu copied to clipboard

Change Font Size?

Open timmcarson opened this issue 5 years ago • 2 comments

I have successfully compiled and ran the esp32 clickEncodertft example. I know want to change the font size. changing fontW and fontH changes the size of the display lines but the not font size itself. How do I change the font type and the font size?

Thanks

timmcarson avatar Apr 06 '20 21:04 timmcarson

@timmcarson take a look here and see how I was able to do it https://github.com/smp4488/Guitarix-Pedalboard/blob/master/src/main.cpp#L302

smplman avatar Apr 07 '20 03:04 smplman

@timmcarson were you able to solve this? I'm attempting to do the same on an OLED using the Adafruit GFX out output. Trying the sam ething as @smplman didn't get me anywhere.

#define FONT_SCALE 2
MENU_OUTPUTS(out,
             MAX_DEPTH,
             ADAGFX_OUT(oled, colors, FONT_SCALE * 6, FONT_SCALE * 9, {0, 0, SCREEN_WIDTH / FONT_SCALE * 6, SCREEN_HEIGHT / FONT_SCALE * 9}),
             SERIAL_OUT(Serial));

This essentially just changes the line size but not the font size. It appears to be what @smplman is doing.

mikejr83 avatar Jan 21 '24 22:01 mikejr83