Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:47 29 Nov 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 : creating / converting a new font - some questions...

Author Message
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 396
Posted: 10:40pm 18 Apr 2023
Copy link to clipboard 
Print this post

Hello,

I want to be able to use german ÄÜÖ äüö ß, so I converted my font from this





To this:


arial_bold_german.zip

As suggested by the embedded fonts via this Website: "http://www.rinkydinkelectronics.com/r_fonts.php"

The problem is, that via this converter the created font doesn't look right to me.

Obviously I have to convert all the

0x10,0x10,0x20,0x5F,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,  // <space>
0x00,0x00,0x00,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x03,0x00,0x00,0x00,0x03,0x00,0x03,0x00,0x00,0x00,0x00,0x00,  // !



To a format without the prefix "0x", no "," and af course no "//" since this online converter reads the image file and converts it for some C/C++ code...

QUESTION:

Is there any fast way to convert all this to work with the MMBASIC expected format?
What converters do you use? I mean, there are hundreds of lines if I would do this by hand.

Greetings
Daniel
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6101
Posted: 11:25pm 18 Apr 2023
Copy link to clipboard 
Print this post

Like this:
' arial_bold_german.bas
DEFINEFONT #8
 5F201010
 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
 00000000 00030003 00030003 00030003 00030003 00000003 00030003 00000000
 00000000 60066006 60066006 00000000 00000000 00000000 00000000 00000000
 00000000 60036003 F03FC006 C006F03F F03F800D 800DF03F 001B001B 00000000
 E0030000 300EF007 F00C300C 800DE00D F00CC00D 180D380C F00CF80D 00000000
 00000000 3066183C 60663066 C03CC066 B3019E01 33033303 1E0C3306 00000000
 00000000 E00FC007 600C600C 8007C007 D819900D 7818F018 8807FC0F 00000000
 00000000 80018001 80018001 00000000 00000000 00000000 00000000 00000000
 80010000 00030003 00060006 00060006 00060006 00030006 80010003 00000000
 00060000 00030003 80018001 80018001 80018001 00038001 00060003 00000000
 00000000 00000000 80038003 F83F9833 C007C007 701CE00E 00004004 00000000
 00000000 00000000 C0000000 C000C000 F807F807 C000C000 0000C000 00000000
 00000000 00000000 00000000 00000000 00000000 00030003 00010001 00000002
 00000000 00000000 00000000 00000000 E003E003 00000000 00000000 00000000
 00000000 00000000 00000000 00000000 00000000 00030000 00000003 00000000
 00000000 60006000 C000C000 C000C000 80018001 80018001 00030003 00000000
 00000000 E007C003 300C700E 300C300C 300C300C 700E300C C003E007 00000000
 00000000 80038001 800D8007 80018009 80018001 80018001 80018001 00000000
 00000000 E007C003 300C300E 60003000 C001E000 00068003 F00FF00F 00000000
 00000000 F007E003 3000300E E001E001 30007000 700E300C C003E007 00000000
 00000000 E0006000 E001E000 60036003 600C6006 F00FF00F 60006000 00000000
 00000000 E007E007 000C0006 E00FC00F 3000700C 700E300C C003E007 00000000
 00000000 F007E003 000C3006 E00FC00D 300C700E 3006300C C003E007 00000000
 00000000 F00FF00F C0006000 8001C000 80018001 00038003 00030003 00000000
 00000000 E007C003 300C300C E007300C 300CE007 300C300C C003E007 00000000
 00000000 E007C003 300C600C 700E300C B003F007 600C3000 C007E00F 00000000
 00000000 80010000 00008001 00000000 00000000 80018001 00000000 00000000
 00000000 80010000 00008001 00000000 00000000 80018001 80008000 00000001
 00000000 00000000 E0002000 000FC003 000F001C E000C003 00002000 00000000
 00000000 00000000 F01FF01F 00000000 F01FF01F 00000000 00000000 00000000
 00000000 00000000 000E0008 E0018007 E0017000 000E8007 00000008 00000000
 00000000 E007C003 300C300E E0007000 8001C001 00008001 80018001 00000000
 C0070000 7813300C C82CE817 C82CC82C E026D02F 10080810 0000E007 00000000
 00000000 80038003 C006C006 600CC006 E00F600C 3018F01F 18303018 00000000
 00000000 F01FE01F 30183018 E01F3018 1818F01F 18181818 E01FF01F 00000000
 00000000 F00FE003 101C380C 00180018 00180018 380C101C E003F00F 00000000
 00000000 F01FC01F 18183018 18181818 18181818 30181818 C01FF01F 00000000
 00000000 F80FF80F 000C000C F80F000C 000CF80F 000C000C F80FF80F 00000000
 00000000 F00FF00F 000C000C E00F000C 000CE00F 000C000C 000C000C 00000000
 00000000 F01FE007 10383818 00300030 F830F830 38181838 E007F81F 00000000
 00000000 18181818 18181818 F81F1818 1818F81F 18181818 18181818 00000000
 00000000 80018001 80018001 80018001 80018001 80018001 80018001 00000000
 00000000 30003000 30003000 30003000 30003000 700E300C C003E007 00000000
 00000000 30181818 C0186018 C01B8019 601CC01E 30187018 18181818 00000000
 00000000 000C000C 000C000C 000C000C 000C000C 000C000C F00FF00F 00000000
 00000000 38383838 783C783C D8365834 D836D836 98339833 18319833 00000000
 00000000 181C1818 181E181E 9819181B D8189819 78187818 18183818 00000000
 00000000 F01FC007 18303018 18301830 18301830 30181830 C007F01F 00000000
 00000000 F00FE00F 180C380C F00F380C 000CE00F 000C000C 000C000C 00000000
 00000000 F01FC007 18303018 18301830 18301830 F018B831 B007F01F 00001800
 00000000 F01FE01F 18183818 F01F3818 E018C01F 30187018 1C183818 00000000
 00000000 F007E003 180C380E E007000F 3800F001 380E180C E003F007 00000000
 00000000 F81FF81F 80018001 80018001 80018001 80018001 80018001 00000000
 00000000 18181818 18181818 18181818 18181818 381C1818 E007F00F 00000000
 00000000 30181830 30183018 600C600C C006E00E 8003C006 80038003 00000000
 00000000 C631C631 6C1BC631 6C1B6C1B 6C1B6C1B 380E380E 380E380E 00000000
 00000000 701C3018 C006600C 8003C007 C0078003 600CC006 3018701C 00000000
 00000000 381C1818 6006300C C0036006 80018001 80018001 80018001 00000000
 00000000 F807F807 60003000 C000E000 80038001 00060003 F80FF80F 00000000
 60036003 C0010000 6003E003 30066003 F80F3006 180CF80F 0C180C18 00000000
 60066006 18180000 18181818 18181818 18181818 381C1818 E007F00F 00000000
 30063006 E0030000 180CF80F 0C180C18 0C180C18 180C0C18 E003F80F 00000000
 80010000 C003C003 60066006 300C6006 00000000 00000000 00000000 00000000
 00000000 00000000 00000000 00000000 00000000 00000000 FFFF0000 0000FFFF
 00000000 C0008001 00000000 00000000 00000000 00000000 00000000 00000000
 00000000 00000000 E00FC007 E001600C 600EE007 E00F600C 0000B007 00000000
 000C0000 000C000C E00FC00D 300C700E 300C300C E00F700E 0000C00D 00000000
 00000000 00000000 E007C003 000C600E 000C000C E007600E 0000C003 00000000
 30000000 30003000 F007B003 300C700E 300C300C F007700E 0000B003 00000000
 00000000 00000000 C0078003 E00F600C 000CE00F C007600E 00008003 00000000
 C0030000 0006C007 800F800F 00060006 00060006 00060006 00000006 00000000
 00000000 60070000 E01CE00F 60186018 E01C6018 6007E00F E01F6018 0000C00F
 000C0000 000C000C F00FE00D 300C300E 300C300C 300C300C 0000300C 00000000
 00000000 80018001 80010000 80018001 80018001 80018001 00008001 00000000
 00000000 80018001 80010000 80018001 80018001 80018001 80018001 00078007
 000C0000 000C000C C00C600C 800F800D C00EC00F 600CC00C 0000600C 00000000
 80010000 80018001 80018001 80018001 80018001 80018001 00008001 00000000
 00000000 00000000 FC3F3837 8C31CC39 8C318C31 8C318C31 00008C31 00000000
 00000000 00000000 F00FE00D 300C300E 300C300C 300C300C 0000300C 00000000
 00000000 00000000 E007C003 300C700E 300C300C E007700E 0000C003 00000000
 00000000 00000000 E00FC00D 300C700E 300C300C E00F700E 000CC00D 000C000C
 00000000 00000000 F007B003 300C700E 300C300C F007700E 3000B003 30003000
 00000000 00000000 F0037003 00038003 00030003 00030003 00000003 00000000
 00000000 00000000 E00FC007 000F600C E000C007 E00F600C 0000C007 00000000
 00010000 00030003 C007C007 00030003 00030003 C0030003 0000C001 00000000
 00000000 00000000 300C300C 300C300C 300C300C F00F700C 0000B007 00000000
 00000000 00000000 30063006 60033006 60036003 C001C001 0000C001 00000000
 00000000 00000000 C631C631 6C1BCC19 6C1B6C1B 380E380E 0000380E 00000000
 00000000 00000000 70073006 C0016003 C001C001 70076003 00003006 00000000
 00000000 00000000 180C180C 30063006 60036003 C001E003 8001C001 00078007
 00000000 00000000 F803F803 70003000 C001E000 F8038001 0000F803 00000000
 60060000 00006006 E007C003 300C700E 300C300C E007700E 0000C003 00000000
 60060000 00006006 300C300C 300C300C 300C300C F00F700C 0000B007 00000000
 30030000 00003003 F007E003 30003004 3006F003 F0073006 0000B003 00000000
 00000000 F80F8807 0000F008 00000000 00000000 00000000 00000000 00000000
END DEFINEFONT




FontTweak from my website.
JIm
VK7JH
MMedit   MMBasic Help
 
Amnesie
Guru

Joined: 30/06/2020
Location: Germany
Posts: 396
Posted: 12:10am 19 Apr 2023
Copy link to clipboard 
Print this post

Jim!

This is really cool. I tested it and it works just perfect! I didn't knew such a program exists! This should be mentioned in the manual!

Thank you!

Greetings
Daniel
 
Print this page


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

© JAQ Software 2024