Pages: [1]   Go Down
Author Topic: SOLVED! Looking for a 5x8 LCD extended ASCII font — characters 32-255  (Read 2819 times)
0 Members and 1 Guest are viewing this topic.
France
Offline Offline
God Member
*****
Karma: 11
Posts: 641
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi!

I'm looking for a 6x8 font which includes the extended ASCII characters as described at http://www.ascii-code.com
Languages like French and Spanish use many letters with accents which are in the extended ASCII characters set.

Quote
The extended ASCII codes (character code 128-255)
There are several different variations of the 8-bit ASCII table. The table below is according to ISO 8859-1, also called ISO Latin-1. Codes 129-159 contain the Microsoft® Windows Latin-1 extended characters.

I've tried different solutions:
  • using MikroElectronica free font generator and importing a Windows font. The Terminal font doesn't include the extended ASCII characters and the other fonts don't feature a 6x8 size.
  • reducing 8x8 to 6x8 with the same tool. Too many letters are impossible to read.
  • looking for a fixed-sized Windows font with 6x8 size. Google throws too many false-positive results.
  • designing the characters from 128 to 255. But it's slow and requires a lot of time!

Thank you for your help.
« Last Edit: February 08, 2013, 09:57:49 am by avenue33 » Logged


Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 533
Posts: 26941
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
designing the characters from 128 to 255. But it's slow and requires a lot of time!

Like Nike says: Just Do It!
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Norfolk UK
Offline Offline
Faraday Member
**
Karma: 67
Posts: 2508
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The Terminal font doesn't include the extended ASCII characters and the other fonts don't feature a 6x8 size.
Maybe the software does not support extended character set as it's in my Terminal font.


* Terminal Font.jpg (53.78 KB, 457x412 - viewed 224 times.)
Logged

There is no such thing as a stupid question but there are a lot of inquisitive idiots.

Germany
Offline Offline
Edison Member
*
Karma: 136
Posts: 1479
If you believe something is right, you won't see what's wrong (David Straker).
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

For my Arduino graphics lib "u8glib" i have include several 100 fonts. Most of them with extended chars.
http://code.google.com/p/u8glib/wiki/fontsize

I decided to derive the internal font format from the plain text font format "bdf".
http://en.wikipedia.org/wiki/Glyph_Bitmap_Distribution_Format

BDF is not that common, but still a lot of fonts are available and BDF can also be derived from TTF.

U8glib includes a bdf converter and bdf font procedures.
All in all u8glib can display any glyph from unicode space.

Oliver


Logged

France
Offline Offline
God Member
*****
Karma: 11
Posts: 641
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
designing the characters from 128 to 255. But it's slow and requires a lot of time!

Like Nike says: Just Do It!

...what's the ASCII code for the swash?  smiley
Logged


France
Offline Offline
God Member
*****
Karma: 11
Posts: 641
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

@Oliver

Thank you for the useful links!
Logged


Germany
Offline Offline
Edison Member
*
Karma: 136
Posts: 1479
If you believe something is right, you won't see what's wrong (David Straker).
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

u8glib is distributed under the BSD license. So all the code could be used in other projects also. Just take over the code from here:
http://code.google.com/p/u8glib/source/browse/csrc/u8g_font.c
Then you could use any existing u8glib font.

Oliver
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 533
Posts: 26941
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Nike swoosh, for 8x8 font smiley-cool
1e, 3f, 7f, cf, 0f,0e, 1c, 38
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

France
Offline Offline
God Member
*****
Karma: 11
Posts: 641
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Finally, it took the last solution,
Quote
designing the characters from 128 to 255. But it's slow and requires a lot of time!
with MikroElectronica free font generator

Actually, there are only 64 additional characters to define, 0xA0 to 0xFF on the ISO-8859-1 tablea.

I'm not using the Arduino IDE, so the characters are coded in UTF8 and need to be translated into ISO-8859-1.

Thanks for your help, links and ideas!
Logged


Pages: [1]   Go Up
Jump to: