Author Topic: Fontx File  (Read 2106 times)

0 Members and 1 Guest are viewing this topic.

Offline rckantaTopic starter

  • Contributor
  • Posts: 31
  • Country: in
    • http://www.fimage.ml/
Fontx File
« on: December 15, 2020, 05:17:03 am »
How to convert TTF file to Fontx File?

I want to convert Times New Roman TTF to Fontx file.
 


Offline MIS42N

  • Frequent Contributor
  • **
  • Posts: 511
  • Country: au
Re: Fontx File
« Reply #2 on: December 28, 2020, 09:23:50 am »
What is a Fontx File? I've heard of True Type (.ttf) and Open Type (.otf) but not this one.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21701
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Fontx File
« Reply #3 on: December 28, 2020, 12:41:41 pm »
Seems to be an archaic 2-color fixed width bitmap format,
http://elm-chan.org/docs/dosv/fontx_e.html
easy enough to use on an MCU, sure.

There cannot exist a trivial conversion from TTF, a variable width vector format.  Or rather, there could, but it'll likely produce ugly results.  Best bet is probably writing out all the characters you're interested in, adjusting them for spacing and hinting, and using a bitmap font packing tool, or just writing your own as it's simple enough.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 
The following users thanked this post: MIS42N

Offline MIS42N

  • Frequent Contributor
  • **
  • Posts: 511
  • Country: au
Re: Fontx File
« Reply #4 on: December 29, 2020, 11:13:46 am »
A possible method is to type characters into a graphics program set to 2 colours and save the data as bmp. The bmp file has the characters as bit maps, can write a program to rearrange it to fontx format. I tried it and got as far as writing the .bmp file. Type 1 letter per line and crop it to the desired pixel width so it is a column of characters. Looks like it will work.

However, Times New Roman is designed as a proportional font, it looks like Fontx expects a monospaced font. So it won't look right. Plenty of serif monospace fonts to choose from.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf