![]() |
Forum Index : Microcontroller and PC projects : MMBasic 8x8 Fontset
Author | Message | ||||
halldave![]() Senior Member ![]() Joined: 04/05/2014 Location: AustraliaPosts: 121 |
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 |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3272 |
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 StatesPosts: 925 |
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 StatesPosts: 1427 |
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 StatesPosts: 172 |
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: AustraliaPosts: 121 |
Jeff You can use them anywhere I don't mid regards David |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |