Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 20:01 07 May 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MMBasic 8x8 Fontset

Author Message
halldave

Senior Member

Joined: 04/05/2014
Location: Australia
Posts: 121
Posted: 05:37pm 21 Aug 2014
Copy link to clipboard 
Print this post

Have published 13 8x8 Font Sets for general use these include

Style No Name
===== == ================
8x8 1 8X8 Standard
8x8 2 8X8 Italic
8x8 3 Hercules
8x8 4 Hercules Italic
8x8 5 Macintosh
8x8 6 Russian
8x8 7 Greek
8x8 8 Greek SanSerif
8x8 9 Armenian
8x8 10 Tiny Type
8x8 11 Space
8x8 12 Fantasy
8x8 13 Thin

2014-08-22_032808_8x8_Font_set.zip

Format of file

' Font Name: Hercules
' Font Type: 1=8x8
' Font Number: 3
' Font Image:
' File Format FontID,CharacterID,8x8Row1,8x8Row2,8x8Row3,8x8Row4,8x8Row5,8 x8Row6,8x8Row7,
' The files have 12 fields
' Field1 = Font type 1=8x8, 2=7Segment, 3=Nokia5110
' Field2 = Font Number
' Field3 = ASCII Character (0-255)
' Field4 to Field11 (in Hex, or Binary, or ASCII) representing the bits to turn on
' Field12 = kerning number, for proportional spacing
'

Example Code below

DATA 1,3,46,&H00,&H00,&H00,&H00,&H00,&H30,&H30,&H00,0 ' (.)
DATA 1,3,47,&H06,&H0C,&H18,&H30,&H60,&HC0,&H80,&H00,0 ' (/)
DATA 1,3,48,&H7C,&HC6,&HCE,&HDE,&HF6,&HE6,&H7C,&H00,0 ' (0)
DATA 1,3,49,&H30,&H70,&H30,&H30,&H30,&H30,&HFC,&H00,0 ' (1)
DATA 1,3,50,&H78,&HCC,&H0C,&H38,&H60,&HCC,&HFC,&H00,0 ' (2)
DATA 1,3,51,&H78,&HCC,&H0C,&H38,&H0C,&HCC,&H78,&H00,0 ' (3)



I will update the spi.Matrix library to use these font sets

Over the coming week I will also be publishing an spi.7Segment library for general use and a set of fonts specific to 7Segment

Over the coming week I will also be publishing and spi.Nokia library based on jmans code and a set of fonts specific to Nokia LCD's



Edited by halldave 2014-08-23
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 07:38pm 21 Aug 2014
Copy link to clipboard 
Print this post

This is a great job. Fonts are difficult to construct and these are an excellent addition to my library.

Thanks.

Geoff
Geoff Graham - http://geoffg.net
 
viscomjim
Guru

Joined: 08/01/2014
Location: United States
Posts: 925
Posted: 02:22am 22 Aug 2014
Copy link to clipboard 
Print this post

This is awesome David. Thanks a million!!! Cant't wait to see new matrix library. Using the uMite is becoming better and better due to the efforts of people like you and this forum and its members!
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1421
Posted: 10:00am 22 Aug 2014
Copy link to clipboard 
Print this post


Used this quick code to look at the characters.



CLS
FOR charset = 0 TO 254 'Full character set
DrawChar
PAUSE 500
CLS
NEXT charset

SUB DrawRow(rowval, offset)
FOR A = 80 TO 10 STEP -10
LINE (A, offset*10) - (A+ 10, offset*10+10), 1, B
IF (rowval AND &H01) = 1 THEN
LINE (A, offset*10) - (A+ 10, offset*10+10), 1, BF
ENDIF
rowval = INT(rowval / 2)
NEXT A
END SUB

SUB DrawChar
READ d1, d2, d3
FOR b = 1 to 8
READ crow
DrawRow crow, b
LOCATE 100, b*10
PRINT crow
NEXT b
READ d4
END SUB

END

' insert DATA here


Micromites and Maximites! - Beginning Maximite
 
Oldbitcollector

Senior Member

Joined: 16/05/2014
Location: United States
Posts: 172
Posted: 06:20am 23 Aug 2014
Copy link to clipboard 
Print this post

Thank you Dave!

I've spent many hours creating variations of 8x8 and 7x7 fonts myself.
It can be tedious. Calculating the binary/hex for things like | you can do in your head, then creating an alternative to the & sign can send you looking for your pills. :)

Hope you don't mind if I share these with the Micromite Companion guys, we should have no problem reproducing these in our MODE 2.

Jeff

My Propeller/Micromite mini-computer project.
 
halldave

Senior Member

Joined: 04/05/2014
Location: Australia
Posts: 121
Posted: 10:23am 23 Aug 2014
Copy link to clipboard 
Print this post

Jeff

You can use them anywhere I don't mid

regards

David
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024