Use other fonts on the 2.8" TFT LCD?

by scoopthepoop on Thu Jun 28, 2012 8:32 pm

I have browsed and searched everything I can think of and cannot find a beginners guide to changing the font. Currently I am using the tft.print("STUFF") to print things to the TFT. Can I use any of the glcd fonts that come with the arduino library to print to the TFT screen?

Thanks
scoopthepoop
 
Posts: 26
Joined: Sat Mar 10, 2012 8:54 am

Re: Use other fonts on the 2.8" TFT LCD?

by adafruit on Fri Jun 29, 2012 8:09 am

there are no othter fonts available at this time, and no tutorials. we hope to re-write the GFX library to handle different fonts but there is no ETA when we'll get to that
User avatar
adafruit
 
Posts: 11505
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: Use other fonts on the 2.8" TFT LCD?

by samv6271 on Mon Nov 19, 2012 1:53 pm

adafruit wrote:] there is no ETA when we'll get to that

Has changed since your post in June? I would like to change the font. If it helps, all I'm looking for is numbers 0-9 and a decimal point.
samv6271
 
Posts: 1
Joined: Mon Nov 19, 2012 1:51 pm

Re: Use other fonts on the 2.8" TFT LCD?

by corbin on Mon Nov 19, 2012 7:52 pm

Hi Sam,
I also wanted more fonts. I looked at using the UTFT library...and it worked for my 2.2" adafruit display, however, it only worked using serial mode and was slow. I ported it over to using the hardware SPI pins. It is at:

https://github.com/corbinstreehouse/UTFT_Adafruit_22TFT

You could probably make similar changes for the 2.8 TFT.

It has 3 fonts available standard.

corbin
corbin
 
Posts: 3
Joined: Sun May 13, 2012 2:43 pm

Re: Use other fonts on the 2.8" TFT LCD?

by uno23 on Thu Nov 22, 2012 5:26 pm

Hi Corbin, great work! But in your opinion for the display 2.2" TFT it'is possible to use also the micro SD card?

Best Regards

Marco
uno23
 
Posts: 5
Joined: Sat Nov 10, 2012 2:28 pm

Re: Use other fonts on the 2.8" TFT LCD?

by andig on Fri Nov 23, 2012 5:52 am

Please have a look at https://github.com/guyc/py-gaugette/issues/1 and https://github.com/andig/convert_font. We're working on a python port of the ssd1306 and adafruit gfx libraries for use with the raspberry pi and have already developed additional bitmapped fonts that can be used with the python libraries.
Cheers, Andreas
andig
 
Posts: 1
Joined: Sat Oct 27, 2012 8:23 am

Re: Use other fonts on the 2.8" TFT LCD?

by zxfr on Fri Feb 01, 2013 10:42 am

Give a try to our UTFT library emulator.

http://pd4ml.com/pixelmeister/

Apart from its main function, it also allows you to import images to rgb565 bitmaps and to convert TTF fonts into a very compact raster format. To support the converted fonts we provide uText library, built on the top of UTFT. (It can be easily ported to any platform, which has means to draw horizontal and vertical lines). The font/text functionality is not limited by a particular character codepage - you can mix any languages in a displayed text.
zxfr
 
Posts: 3
Joined: Fri Feb 01, 2013 10:30 am