LIBtft144 icon indicating copy to clipboard operation
LIBtft144 copied to clipboard

Bring new fonts into library

Open dgriggs opened this issue 8 years ago • 2 comments

Just in case this is easy and I'm going the hard way, is there an easy way to convert new fonts to your data structure? I'm playing around with various programs I find online but there are soooooooo many settings I will probably never get it just right and end up hand-writing a whole font...

dgriggs avatar May 26 '17 05:05 dgriggs

Oh dear, this was a while ago.

The basic font 6x8 kicks around the internet in various spots. The others I made from a free font generator utility. It may have been "LCD Font Maker". You feed it the truetype font you want. And then you tinker with it until you finally get what you want. It's a bit seat-of-the-pants.

I used 2 different data-table formats: one is row x column, other is column x row. The fontmaker utility (once you learn to tame it!) produces one of those. It's the original 6x8 that is different from the others. Every font table is used twice: normal and double size. If you make a new font, then the fontDim array in the source is mainly where you configure the W x H and the normal/double size. If you make a font wider than 8 bits then the algorithms I used will break.

,,, and btw, I presume you simply use it on Raspberry Pi. The Virtual GPIO project didn't get enough interest for me to continue maintaining it, but it did work. Such is life.

Good luck

Brian Australia

On 26 May 2017 at 15:44, David Griggs [email protected] wrote:

Just in case this is easy and I'm going the hard way, is there an easy way to convert new fonts to your data structure? I'm playing around with various programs I find online but there are soooooooo many settings I will probably never get it just right and end up hand-writing a whole font...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BLavery/LIBtft144/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AIYX1Y9CDa3-DfREPlpCbFomvdr-Lz4Mks5r9mbOgaJpZM4NnMlB .

BLavery avatar May 26 '17 09:05 BLavery

Righto, ill just edit your algorithms then to get it reading 3-byte groups per char. Thanks


From: Brian Lavery [email protected] Sent: Friday, May 26, 2017 4:35:55 AM To: BLavery/LIBtft144 Cc: David Griggs; Author Subject: Re: [BLavery/LIBtft144] Bring new fonts into library (#4)

Oh dear, this was a while ago.

The basic font 6x8 kicks around the internet in various spots. The others I made from a free font generator utility. It may have been "LCD Font Maker". You feed it the truetype font you want. And then you tinker with it until you finally get what you want. It's a bit seat-of-the-pants.

I used 2 different data-table formats: one is row x column, other is column x row. The fontmaker utility (once you learn to tame it!) produces one of those. It's the original 6x8 that is different from the others. Every font table is used twice: normal and double size. If you make a new font, then the fontDim array in the source is mainly where you configure the W x H and the normal/double size. If you make a font wider than 8 bits then the algorithms I used will break.

,,, and btw, I presume you simply use it on Raspberry Pi. The Virtual GPIO project didn't get enough interest for me to continue maintaining it, but it did work. Such is life.

Good luck

Brian Australia

On 26 May 2017 at 15:44, David Griggs [email protected] wrote:

Just in case this is easy and I'm going the hard way, is there an easy way to convert new fonts to your data structure? I'm playing around with various programs I find online but there are soooooooo many settings I will probably never get it just right and end up hand-writing a whole font...

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BLavery/LIBtft144/issues/4, or mute the thread https://github.com/notifications/unsubscribe-auth/AIYX1Y9CDa3-DfREPlpCbFomvdr-Lz4Mks5r9mbOgaJpZM4NnMlB .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/BLavery/LIBtft144/issues/4#issuecomment-304237665, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AMR6wPJqJHOWk6-SDEPgf7RFHxdBvuLxks5r9pz7gaJpZM4NnMlB.

dgriggs avatar May 26 '17 14:05 dgriggs