[550D] ML fonts

61 views
Skip to first unread message

Alex

unread,
Jan 8, 2011, 8:52:51 AM1/8/11
to Magic Lantern firmware development
I'm trying to re-build the ML fonts.

Tried to run bigtext, did not find font server. Googled a bit, installed xfs, forced it on port 7100, and works with Helvetica. Yay!

Now... it seems only helvetica and courier can be selected. Is there a way to list the fonts recognized by xfs?

alex@karmic:~/src/ml/5d$ bigtext -font -*-courier-*-r-*-*-15-*-100-100-*-*-iso8859-* magic
                                  ##
                                  ##
##### ##    #####     #######   ####       ######
#########      ###   #######      ##      #######
 ## ## ##    #####  ##    ##      ##     ##    ##
 ## ## ##   ######  ##    ##      ##     ##
 ## ## ##  ##   ##  ##    ##      ##     ##
 ## ## ##  #######   #######     ###      #######
### ## ###  #######   ######    #######    #####
                          ##
                      ######
                      #####


Trammell Hudson

unread,
Jan 8, 2011, 9:09:22 AM1/8/11
to ml-d...@googlegroups.com
On Sat, Jan 08, 2011 at 03:52:51PM +0200, Alex wrote:
> I'm trying to re-build the ML fonts.

I liked your idea of porting TeX. Considering the 500 MHz ARM is
much faster than the original machines I ran LaTeX on, it isn't as
far fetched as it might initially seem...

> [...] Is there a way to list the fonts recognized by xfs?

xlsfonts will print the names and xfontsel can be used to
interactively examine the fonts.


kremvax:~/build/bigtext-1.1: bigtext -font '-*-copperplate-*-*-*-*-12-*-100-100-*-*-iso8859-*' Copper
#####
## # #### ##### ##### ##### #####


# # # # # # # # # #

# # # ##### ##### ### ####
# # # # # # # # #


###### #### # # ##### # #

kremvax:~/build/bigtext-1.1: bigtext -font '-*-copperplate-*-*-*-*-12-*-100-100-*-*-iso8859-*' Plate
##### #


# # # ## ##### #####
##### # ### # #
# # # # # ###

# # ##### # #


# ##### # # # #####


--
Tramell

Alex

unread,
Jan 8, 2011, 9:20:57 AM1/8/11
to Magic Lantern firmware development
Thanks.

> I liked your idea of porting TeX.
:) was just a joke

> xfontsel
Nice! I remember this from the time I was trying Slackware on a 486.

Doesn't recognise DejaVu, but I think I can find another nice one.

Alex

unread,
Jan 8, 2011, 9:31:40 AM1/8/11
to Magic Lantern firmware development
Terminus is recognized by bigtext, is GPL and it's not that bad:
http://fractal.csie.org/~eric/wiki/Terminus_font

Downside: sizes are from 12 to 32 only...

--
http://magiclantern.wikia.com/

To post to this group, send email to ml-d...@googlegroups.com
To unsubscribe from this group, send email to ml-devel+u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/ml-devel?hl=en

Chris71

unread,
Jan 8, 2011, 1:10:18 PM1/8/11
to Magic Lantern firmware development
I also googled a bit.

"Liberation Mono" font looks quite promising:
http://en.wikipedia.org/wiki/Liberation_fonts
https://fedorahosted.org/liberation-fonts/

On 8 Jan., 15:31, Alex <broscutama...@gmail.com> wrote:
> Terminus is recognized by bigtext, is GPL and it's not that bad:http://fractal.csie.org/~eric/wiki/Terminus_font
>
> Downside: sizes are from 12 to 32 only...
>
> > ml-devel+u...@googlegroups.com<ml-devel%2Bunsu...@googlegroups.com>

Alex

unread,
Jan 8, 2011, 1:15:23 PM1/8/11
to ml-d...@googlegroups.com
Yes... but how do you make bigtext recognize it?

(status: trying to decipher perl and its error messages...)

Fernando Freire

unread,
Jan 8, 2011, 2:02:32 PM1/8/11
to ml-d...@googlegroups.com
Hi , bigtext -L, list the fonts available for bigtext (I supposse you find it yet).

I try some of them and:

user@ubuntu1004desktop:~/magic-lantern$ bigtext -font lucidasanstypewriter-8 123456ltT
 ##     ###     ###        #    ####      ###   ###            #######
# #     #  #       #      ##    #        #        #      #        #
  #        #       #     ###    #       #         #     #####     #
  #       ##     ##      # #    ###     ####      #      #        #
  #       #        #    #  #      ##    #   #     #      #        #
  #      #         #    #####      #    #   #     #      #        #
  #     #          #       #       #    #   #     #      #        #
#####   ####    ###        #    ###      ###      #      ####     #

or perhaps better
user@ubuntu1004desktop:~/magic-lantern$ bigtext -font lucidasanstypewriter-bold-12 123456ltT

####       ####       ####         ###     ######       ######  #####                ##########
####      #######    ######        ###     ######      #######  #####        ##      ##########
  ##      #   ###    #   ##       ####     ##         ###    #     ##        ##          ##
  ##           ##        ##      #####     ##        ###           ##      ########      ##
  ##           ##       ###      ## ##     ####      ## ####       ##      ########      ##
  ##          ###     ###       ##  ##     #####     ########      ##        ##          ##
  ##         ###      ####     ##   ##        ###    ###   ###     ##        ##          ##
  ##        ###         ###    #########       ##    ##     ##     ##        ##          ##
  ##       ###           ##    #########       ##    ##     ##     ##        ##          ##
  ##      ###        #   ##         ##     #  ###     ##   ###     ##        ##          ##
######    #######    #####          ##     #####      #######      ##        ######      ##
######    #######    ####           ##     ####         ####       ##         #####      ##

Alex

unread,
Jan 8, 2011, 2:10:09 PM1/8/11
to ml-d...@googlegroups.com
bigtext -L: thanks!!!

Lucida: I'm not sure if the license allows us tu use it... anyone knows?


--

Alex

unread,
Jan 8, 2011, 2:15:33 PM1/8/11
to ml-d...@googlegroups.com
I think I've just solved it by installing xfstt from Maverick (the one in Lucid is broken).

Alex

unread,
Jan 8, 2011, 2:21:36 PM1/8/11
to ml-d...@googlegroups.com
Or... not.

alex@karmic:~/src/ml/fonttest/magic-lantern$ bigtext -L |grep Libe
TTUP020707090202050904040_Liberation Mono Bold Italic
TTUP020B06040202020202040_Liberation Sans
TTUP020208030705050203040_Liberation Serif Bold
TTUP020707090202050204040_Liberation Mono Bold
TTUP020207030605050903040_Liberation Serif Bold Italic
TTUP020205030504050903040_Liberation Serif Italic
TTUP020B06040202020902040_Liberation Sans Italic
TTUP020B07040202020902040_Liberation Sans Bold Italic
TTUP020704090202050904040_Liberation Mono Italic
TTUP020B07040202020202040_Liberation Sans Bold
TTUP020206030504050203040_Liberation Serif
TTUP020704090202050204040_Liberation Mono
alex@karmic:~/src/ml/fonttest/magic-lantern$ bigtext -font 'TTUP020704090202050204040_Liberation Mono' abc
FS Error:  BadName, named font does not exist
  Request Major code 0 ()
  Request Minor code 0
  ResourceID 0xbffcfe58
  Error Serial #1
  Current Serial #1

What's wrong?!

Fernando Freire

unread,
Jan 8, 2011, 2:45:37 PM1/8/11
to ml-d...@googlegroups.com

Alex, yes it's neccesary install an start the xfstt font server to get ttf fonts "published" to apps like bigtext. The default port is 7101 and we can tell bigtext to listen to it, but I get a error from xfstt that it's a reported bug. I think I need
a more new ubuntu debian package or comiling from sources. Perhaps you have some success:


user@ubuntu1004desktop:/usr/share/fonts/truetype$ export FONTSERVER=unix/:7101; bigtext -L

FSIO:  fatal IO error 32 (Broken pipe) on font server "unix/:7101"
      after 1 requests (0 known processed) with 0 events remaining.
      The connection was probably broken by a server shutdown.

Alex

unread,
Jan 8, 2011, 2:57:35 PM1/8/11
to ml-d...@googlegroups.com
Yes, that's i've upgraded xftt. Now it lists the fonts, but can't use them.

Fernando Freire

unread,
Jan 8, 2011, 3:01:29 PM1/8/11
to ml-d...@googlegroups.com
Alex, do you remember do the export: export FONTSERVER=unix/:7101?



Alex

unread,
Jan 8, 2011, 3:11:58 PM1/8/11
to ml-d...@googlegroups.com
Yes, and I'm sure bigtext communicates with xfstt (if I stop xfstt, there's another error).

On Sat, Jan 8, 2011 at 10:01 PM, Fernando Freire <nang...@gmail.com> wrote:
Alex, do you remember do the export: export FONTSERVER=unix/:7101?

Alex

unread,
Jan 8, 2011, 3:28:48 PM1/8/11
to ml-d...@googlegroups.com
Here's a preview of ML with Terminus font. Does it look better or worse?

Can you look at my changes and try the Liberation Mono font?
https://bitbucket.org/hudson/magic-lantern/changeset/28d35eb6698f
magiclantern-2011Jan08.550d.fw109.font-terminus.alex.zip

Alex

unread,
Jan 8, 2011, 3:44:17 PM1/8/11
to ml-d...@googlegroups.com
A screenshot.

Another nice font is fixed, but its max size is 20 (medium font). The menu font is the large one.
Terminus.BMP

Trammell Hudson

unread,
Jan 8, 2011, 4:02:15 PM1/8/11
to ml-d...@googlegroups.com
On Sat, Jan 08, 2011 at 10:44:17PM +0200, Alex wrote:
> A screenshot.

I like it. The slashed zero and slight serifs look very clean.
Let's replace my hacked up fonts with it. One thing that might be
very useful is to have the fonts loaded from disk rather than
built into the .bin file. We might leave one small font in place
just in case, but would be able to reduce the memory footprint quite
a bit (especially for things like the huge font).

> Another nice font is fixed, but its max size is 20 (medium font). The menu
> font is the large one.

fixed is my favorite xterm font for the past twenty years.

If someone really wants a fun project, figuring out how to use the
built-in SVG renderer would be incredibly useful.

--
Trammell

robert

unread,
Jan 8, 2011, 4:26:53 PM1/8/11
to Magic Lantern firmware development
Some other fonts:
http://www.nanoant.com/tweaks/perfect-terminalapp-unicode-font

Terminus looks great! It also allows more space to be used between
menu items and their values -> easier to overlook the settings.

Chris71

unread,
Jan 8, 2011, 4:30:40 PM1/8/11
to Magic Lantern firmware development
Looks nice! Much better than the old Helvetica font! :-)

Just one small optical drawback: The Magic Lantern text "ISO AUTO" now
overwrites the Canon text "ISO AUTO" (this can also be seen in your
screenshot). Could you please put this text a few pixels higher?

Thanks again for your efforts!

On 8 Jan., 21:28, Alex <broscutama...@gmail.com> wrote:
> Here's a preview of ML with Terminus font. Does it look better or worse?
>
> Can you look at my changes and try the Liberation Mono font?https://bitbucket.org/hudson/magic-lantern/changeset/28d35eb6698f
>
>  magiclantern-2011Jan08.550d.fw109.font-terminus.alex.zip
> 1037KAnzeigenHerunterladen

Fernando Freire

unread,
Jan 8, 2011, 4:57:53 PM1/8/11
to ml-d...@googlegroups.com

I agree, it looks very nice, the readability of text is improved a lot.

 

arm.indy

unread,
Jan 8, 2011, 5:21:56 PM1/8/11
to Magic Lantern firmware development
Very nice Alex!

Piers

unread,
Jan 9, 2011, 5:53:01 AM1/9/11
to ml-d...@googlegroups.com
def more readable, a little square and DOS for my tastes, I might continue the search when I get back. Certainly worth changing.

Piers

unread,
Jan 30, 2011, 6:54:05 AM1/30/11
to ml-d...@googlegroups.com
As promised, I've had a stab at finding some more font options.

Jesus Christ, getting bigtext to work was not fun! I presumed that it would be simplest in my ubuntu vm, which is all-X, but no - after a fair bit of pain trying to get a working xfstt, I tried OSX where the built-in xfs could already handle TTFs (and there's quite a few fonts available).

So attached is a very first try using bitstream Menlo - I have not yet investigated the license, but it's the type of font I'd prefer: sans and rounder than Terminus.

Other (known) issues are: the sizing and spacing should be tweaked a little, and the small font doesn't seem to render well at that size, but being vector I can try 1px either side and see how that looks.

Re the license: while I think we'd have a good chance of arguing that a derived bitmap from a vector font is our property (fonts are licensed as software and we have not copied that); I'd strongly favour finding a font which is GPL or public domain (or has an explicit waiver of copyright for derived files)

(NB also the screenshot comes from a clone of the repo from many weeks ago so do not be alarmed about the old-looking menus. No reason it wont work with newer builds)

PG
VRAM1.BMP

Piers

unread,
Jan 31, 2011, 5:26:53 AM1/31/11
to ml-d...@googlegroups.com
I am just about to try and build the latest git repo version with fonts derived from vera sans mono - which the bitsream license clearly permits us to do, provided we include their copyright and license message.

And then I discovered that, at least in the latest zip I tried (Jan28), despite the README file referring to a LICENSE file ... there is no LICENSE file at the moment! Better correct that!

PG
Reply all
Reply to author
Forward
0 new messages