Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:06 06 Jul 2025 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 : MMEdit: Saving Embedded Fonts

Author Message
nyquist1
Newbie

Joined: 30/10/2016
Location: New Zealand
Posts: 1
Posted: 01:33am 30 Oct 2016
Copy link to clipboard 
Print this post

Hi,
When I try and save an embedded font data file in the library using MMedit (v3.6.9) the font file is actually saved to library.bas however the Defined Font name does not appear in the list box of the library GUI.
If I disguise the code file by top-and-tailing it with CFUNCTION NAME and END CFUNCTION
the listing then appears.

Is there a more elegant way of handling this? I'm new to using MMEdit and could me overlooking an obvious answer

Generally finding the editor very easy to use
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1000
Posted: 02:34am 30 Oct 2016
Copy link to clipboard 
Print this post


Hi,
Not sure where the font came from or its size but see this thread and a possible issue I had.

FontTweak Thread


I have discovered a small issue with FontTweak when it saves a font which does not coincide with a neat set of 8 characters at the end.

The font works only if it is the last thing in the basic program and I have used it like that up until now, but I have also found it wont go with LIBRARY SAVE so have had to track it down. It looks like MMBasic and the SAVE LIBRARY want it padded out to a neat 8 characters. I have added 00 at the end of this font file and MMBASIC is happy. If I open with FontTweak and save it, FontTweak saves the correct number of bytes as need for the font, but we need to pad it out the make MMBasic happy.

Its not a big thing once you know, but a bit hard to find.

Regards
Gerry


' Font2_8x13_OSC_126.bas
' Font type : Full (127 characters)
' Font size : 8x13 pixels
' Memory usage : 1655 bytes
' Font adapted from: http://www.rinkydinkelectronics.com/r_fonts.php

DefineFont #8
7F010D08 D8F0E0C0 DEDFDE9C E0F0F88C F0E0C0C0 8FEEAC88 F0F88CBE 0F07C0E0
E0713B18 237BFBEA 07070F1F 7B231F0F 71E0EAFB 070F183B 00000000 44444400
407C4444 000000C0 00040000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 10100000 10101010 00100010 24000000 00002424 00000000 00000000
7E242400 24247E24 00000000 3C100000 78143850 00000010 52220000 10080824
00442A24 00000000 48483000 3A444A30 00000000 40303800 00000000 00000000
08080400 08101010 00000408 10200000 08080810 00201010 00000000 7E182400
00002418 00000000 10100000 0010107C 00000000 00000000 00000000 00403038
00000000 007E0000 00000000 00000000 00000000 38100000 00000010 08040202
80402010 00000080 42241800 42424242 00001824 30100000 10101050 007C1010
3C000000 04024242 7E402018 00000000 0804027E 4202021C 0000003C 140C0400
7E444424 00000404 407E0000 02625C40 003C4202 1C000000 5C404020 3C424262
00000000 0804027E 20101008 00000020 42423C00 42423C42 00003C42 423C0000
023A4642 00380402 00000000 10381000 38100000 00000010 38100000 38000010
00004030 08040200 08102010 00000204 00000000 00007E00 0000007E 40000000
04081020 40201008 00000000 0242423C 00080804 00000008 42423C00 4A56524E
00003C40 24180000 7E424242 00424242 FC000000 7C424242 FC424242 00000000
4040423C 42404040 0000003C 4242FC00 42424242 0000FC42 407E0000 40784040
007E4040 7E000000 78404040 40404040 00000000 4040423C 46424E40 0000003A
42424200 42427E42 00004242 107C0000 10101010 007C1010 1E000000 04040404
38440404 00000000 50484442 44485060 00000042 40404000 40404040 00007E40
82820000 9292AAC6 00828282 42000000 4A526242 42424246 00000000 4242423C
42424242 0000003C 42427C00 40407C42 00004040 423C0000 42424242 023C4A52
7C000000 7C424242 42444850 00000000 4040423C 4202023C 0000003C 1010FE00
10101010 00001010 42420000 42424242 003C4242 82000000 44444482 10282828
00000000 82828282 AA929292 00000044 44828200 44281028 00008282 82820000
10102844 00101010 7E000000 10080402 7E404020 00000000 2020203C 20202020
0000003C 40808000 04081020 00000202 08780000 08080808 00780808 10000000
00004428 00000000 00000000 00000000 00000000 0000FE00 04183800 00000000
00000000 00000000 3E023C00 003A4642 40000000 625C4040 5C624242 00000000
3C000000 42404042 0000003C 02020200 4242463A 00003A46 00000000 7E423C00
003C4240 1C000000 7C202022 20202020 00000000 3A000000 40384444 003C423C
40404000 4242625C 00004242 10000000 10103000 007C1010 00000000 040C0004
44040404 00003844 44404040 44487048 00000042 10103000 10101010 00007C10
00000000 9292EC00 00829292 00000000 625C0000 42424242 00000000 3C000000
42424242 0000003C 00000000 6242625C 4040405C 00000000 42463A00 02023A46
00000002 225C0000 20202020 00000000 3C000000 420C3042 0000003C 20200000
2020207C 00001C22 00000000 44444400 003A4444 00000000 44440000 10282844
00000000 82000000 AA929282 00000044 00000000 18182442 00004224 00000000
42424200 42023A46 0000003C 047E0000 7E201008 00000000 0810100E 10100830
0000000E 10101000 10101010 00001010 08700000 100C1008 00700808 24000000
00004854 00000000 00000000 00000000 00000000 000000
End DefineFont

Latest F4 Latest H7 FotS
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6269
Posted: 11:43am 30 Oct 2016
Copy link to clipboard 
Print this post

  disco4now said  

I have discovered a small issue with FontTweak when it saves a font which does not coincide with a neat set of 8 characters at the end.


I don't think the bug in FontTweak has anything to do with the original problem but here is a new FontTweak with that particular bug squashed (I think).

2016-10-30_214232_FontTweak.zip

Jim

VK7JH
MMedit
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025