SpeedoFont file viewer / simple GEM font editor

All about the serious stuff.

Moderators: Mug UK, Zorro 2, Moderator Team

ThorstenOtto
Captain Atari
Captain Atari
Posts: 369
Joined: Sun Aug 03, 2014 5:54 pm

SpeedoFont file viewer / simple GEM font editor

Postby ThorstenOtto » Sat Dec 30, 2017 12:58 pm

During some recent experiments with NVDI & font files, i wrote some utilities.

One is (a very simple) Editor for GEM *.fnt files. For now, you can only edit existing fonts, but there is also some support to export/import them from some propietary text file format.

Another is a viewer for SpeedoFont files.

All programs are clean GEM programs, however the SpeedoFont file viewer might need some reasonable high resolution to be usable. A modified version of it is also running as a web service.

Sources, and binaries for a font file viewer for windows&linux, are available as gemfedit-1.0.2-src.zip.

I you find any problems, or wrong mappings in the font files, please let me know.

Have fun,
Thorsten
Last edited by ThorstenOtto on Mon Jul 23, 2018 11:42 pm, edited 2 times in total.

User avatar
christos
Fuji Shaped Bastard
Fuji Shaped Bastard
Posts: 2380
Joined: Tue Apr 13, 2004 8:24 pm
Location: Greece
Contact:

Re: SpeedoFont file viewer / simple GEM font editor

Postby christos » Sat Dec 30, 2017 3:14 pm

Good work on this. I just loaded it up, seems fairly straightforward. Any chance you can add a function to rearrange a font? I'd like to change the greek one to iso8859-7 and see what it does.

Edit:
Also, I had an idea, if I used the txt export and changed the hex codes for the glyphs, would it rearrange them on input?
Felix qui potuit rerum cognoscere causas.
My Atari blog

STOT Email address: stot(NoSPAM)atari(DOT)org

ThorstenOtto
Captain Atari
Captain Atari
Posts: 369
Joined: Sun Aug 03, 2014 5:54 pm

Re: SpeedoFont file viewer / simple GEM font editor

Postby ThorstenOtto » Sat Dec 30, 2017 3:33 pm

christos wrote:Any chance you can add a function to rearrange a font? I'd like to change the greek one to iso8859-7 and see what it does.


The editor is mainly designed for making a few adjustments to existing fonts, like e.g. in EmuTOS when we need to change the glyphs that are used by the window gadgets. Rearranging them might be possible, but remember that the current greek font (as well as the latin2 font) has lots of glyphs that are not present in the original font.

Also, I had an idea, if I used the txt export and changed the hex codes for the glyphs, would it rearrange them on input?


Yes, that should work.

nagual
Captain Atari
Captain Atari
Posts: 313
Joined: Mon Sep 11, 2006 10:15 am

Re: SpeedoFont file viewer / simple GEM font editor

Postby nagual » Sat Dec 30, 2017 3:54 pm

Nice work, thank you:-)

User avatar
jfl
Atari Super Hero
Atari Super Hero
Posts: 858
Joined: Tue Jul 18, 2006 10:55 pm
Location: Liège, Belgium
Contact:

Re: SpeedoFont file viewer / simple GEM font editor

Postby jfl » Sat Dec 30, 2017 6:40 pm

Useful stuff, Thorsten. I only tested the programs quickly on my Firebee and unfortunately spdview.prg froze it. Running it with the 68k emulator works though, and the other two programs ran fine as they are.
Jean-François
GEMDict – GEMClip

ThorstenOtto
Captain Atari
Captain Atari
Posts: 369
Joined: Sun Aug 03, 2014 5:54 pm

Re: SpeedoFont file viewer / simple GEM font editor

Postby ThorstenOtto » Sun Dec 31, 2017 7:43 am

jfl wrote:I only tested the programs quickly on my Firebee and unfortunately spdview.prg froze it.


The TOS programs were all compiled using Pure-C, so that might not work.

Running it with the 68k emulator works though, and the other two programs ran fine as they are.


Maybe pure luck, they are not native CF binaries.You may want to recompile them for the FireBee.

User avatar
Neurotoxic
Obsessive compulsive Atari behavior
Obsessive compulsive Atari behavior
Posts: 115
Joined: Thu Apr 20, 2017 9:29 pm
Location: Bremen (Germany)
Contact:

Re: SpeedoFont file viewer / simple GEM font editor

Postby Neurotoxic » Wed Jan 03, 2018 1:21 pm

All programs just ran fine on my Milan. Thank you very much!
520 ST(M) (TOS 1.02), Falcon030 (16 MHz, 16 MB RAM, CF-Card, MiNT & MyAES), Milan040 (25 MHz, 48 MB RAM, EasyMiNT 1.90), Firebee, PowerMac G5 Late 2005 (2 x 2,3 GHz, Mac OS 10.5), iMac 4K Late 2015 (intel Core i7 4 x 3,3 GHz, Mac OS 10.11.6), IBM XT SFD (640 KB RAM, DR DOS 6.0), Compaq LTE 5300 (Pentium/133 MHz, DR-DOS 7.03), AT-PC (Cyrix 6x86L/200 MHz, Windows 98 SE/MS-DOS 6.22 & Windows 3.11)

arf
Captain Atari
Captain Atari
Posts: 167
Joined: Thu May 17, 2012 9:56 pm
Location: Germany

Re: SpeedoFont file viewer / simple GEM font editor

Postby arf » Sat Jan 13, 2018 9:13 pm

ThorstenOtto wrote:During some recent experiments with NVDI & font files, i wrote some utilities.

One is (a very simple) Editor for GEM *.fnt files. For now, you can only edit existing fonts, but there is also some support to export/import them from some propietary text file format.

Another is a viewer for SpeedoFont files.

All programs are clean GEM programs, however the SpeedoFont file viewer might need some reasonable high resolution to be usable. A modified version of it is also running as a web service.

Sources, and binaries for a font file viewer for windows&linux, are available as gemfedit-1.0.1-src.zip.

I you find any problems, or wrong mappings in the font files, please let me know.

Have fun,
Thorsten


Thanks for providing it! Finally a tool to quickly have a glance at fonts without “installing” ’em first.

I just tried it on TOS 2.06 with WINX 2.3n, and I’m getting "AES ERROR - Application: FONTDISP | Function ID: wind_update | END_: … underflow", when loading a new font with ^O, in front of the file selector: https://s1.hoffart.de/~goetz/Schnipsel/1515878064.png

I think it’d be cool if the font would be display enlarged and in original size (perhaps with changeable text strings) for an easier judgement. <edit> Ops, this is built in, but I didn’t notice for the first fonts I tried, because the preview at 1× showed the system font, not the loaded font.

ThorstenOtto
Captain Atari
Captain Atari
Posts: 369
Joined: Sun Aug 03, 2014 5:54 pm

Re: SpeedoFont file viewer / simple GEM font editor

Postby ThorstenOtto » Sun Jan 14, 2018 2:29 pm

arf wrote:I just tried it on TOS 2.06 with WINX 2.3n, and I’m getting "AES ERROR - Application: FONTDISP | Function ID: wind_update | END_: … underflow", when loading a new font with ^O


That seems to be caused by your file selector. I think that does not happen when using the menu instead. Should be fixed now, but that is

Ops, this is built in, but I didn’t notice for the first fonts I tried, because the preview at 1× showed the system font, not the loaded font.


Yes, the viewer shows the system font in the preview on the left side, because you can scale the loaded font down to its original size. That was done by intention, so you can easily check which characters might be missing, or changed. OTOH, the editor will display the loaded font instead.

User avatar
Eero Tamminen
Atari God
Atari God
Posts: 1729
Joined: Sun Jul 31, 2011 1:11 pm

Re: SpeedoFont file viewer / simple GEM font editor

Postby Eero Tamminen » Sun Jan 14, 2018 10:01 pm

ThorstenOtto wrote:
jfl wrote:I only tested the programs quickly on my Firebee and unfortunately spdview.prg froze it.


The TOS programs were all compiled using Pure-C, so that might not work.

Running it with the 68k emulator works though, and the other two programs ran fine as they are.


Maybe pure luck, they are not native CF binaries.You may want to recompile them for the FireBee.


AHCC is Pure-C compatible and supports CF, so for CF build you would just need to add PRJ file for AHCC.

Some of my programs are built with AHCC and have PRJ files both for m68k & CF, which you can use as examples if you haven't used AHCC earlier:
http://eerott.mbnet.fi/hatari/programs.shtml

ThorstenOtto
Captain Atari
Captain Atari
Posts: 369
Joined: Sun Aug 03, 2014 5:54 pm

Re: SpeedoFont file viewer / simple GEM font editor

Postby ThorstenOtto » Tue Jan 16, 2018 1:04 pm

Eero Tamminen wrote:AHCC is Pure-C compatible and supports CF, so for CF build you would just need to add PRJ file for AHCC.


I know, but to be honest i don't trust AHCC. When the developer thinks he can use the 16bit library when compiling for 32bit-ints by just declaring all standard functions taking short arguments instead of int, he obviously did not understand some key concepts of integer promotion. And the GUI is a real mess, with the log window popping up all the time, and that monster configuration dialog...

But you can just hack the Makefile in the tos directory to add the necessary flags for CF, and (cross)-compile it using gcc instead. The resulting binaries would of just be larger, due to the overhead of mintlib.

ThorstenOtto
Captain Atari
Captain Atari
Posts: 369
Joined: Sun Aug 03, 2014 5:54 pm

Re: SpeedoFont file viewer / simple GEM font editor

Postby ThorstenOtto » Mon Jul 23, 2018 11:49 pm

Update: link to archive (in first post) changed to current version.

And a new function has been made available on the web: you can now also view most truetype font formats.

Gives some strange results yet with fonts that use lots of combining diacrits, but should otherwise work. But be warned: as for now, every glyph is rendered as a single image. Since truetype fonts usually contain lots of them, your browser will request a few thousands images.


Social Media

     

Return to “Applications”

Who is online

Users browsing this forum: No registered users and 3 guests