Need a developer who can compile BigText to compile fonts

106 views
Skip to first unread message

Andrew Coutts

unread,
Apr 30, 2012, 1:06:51 AM4/30/12
to Magic Lantern firmware development
I am working on a hack for the 5dc, I posted about it a few days ago.
Anyways, I have just ported bmp.c from Magic Lantern so that I can use
bmp_printf() to print text to the screen. I have not located the built
in fonts in the firmware yet, so I am currently using the old ML font
method of the pre-compiled font files (font-small.c, font-med.c, font-
large.c).

The problem is that the 5dc bmp buffer is about 1/2 the resolution of
modern dslr cameras that run Magic Lantern, so as a result all of the
font files are huge on the 5dc screen. I have tried to compile the
BigText program myself to generate new font files, but for some reason
it will not compile on my machine (some linker error, something to do
with a missing library in OS X i think).

If somebody can compile the BigText program from here: http://bigtext.sourceforge.net/

and generate font files of exactly half the size as the default ML
ones (look in the magic lantern makefile), it would help me greatly.
Thanks!

Morgan Look

unread,
Apr 30, 2012, 1:52:50 AM4/30/12
to ml-d...@googlegroups.com
I've got bigtext working, but make complains about my gcc version now (it's been a while since I've messed with ML source).

If you just want the output from some bigtext command I'm happy to send that to you.

Morgan.
> --
> 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

Eduardo Pérez Esteban

unread,
Apr 30, 2012, 2:20:43 AM4/30/12
to ml-d...@googlegroups.com
I'm very interested in this! Will be willing to install whatever Linux distribution is required for this to work; if you need any help, just say so.

Edu.
> To unsubscribe from this group, send email to ml-devel+unsubscribe@googlegroups.com

Andrew Coutts

unread,
Apr 30, 2012, 2:35:41 AM4/30/12
to Magic Lantern firmware development
Awesome!

long shot, but can you possibly send me your executable of it
compiled? maybe it will run on my system.


But looking at the ML makefile:

# These do not need to be run. Since bigtext is not
# a standard program, the output files are checked in.
#font-large.in: generate-font
# $(call build,'GENFONT',./$< > $@ \
# 'fixed-bold-32' \
# 16 30 \
# )
#font-med.in: generate-font
# $(call build,'GENFONT',./$< > $@ \
# '-misc-fixed-medium-r-normal--20-2' \
# 10 15 \
# )
#font-small.in: generate-font
# $(call build,'GENFONT',./$< > $@ \
# 'terminus-bold-12' \
# 6 10 \
# )


I basically need to run that (there's a generate-font script in the /
src directory of ML), but generate fonts that are half of those sizes,
so I guess just cut each number there in half and it should work?

Morgan Look

unread,
Apr 30, 2012, 5:55:34 AM4/30/12
to ml-d...@googlegroups.com
I only have bigtext compiled for linux.
I use OSX, but I have ML build environment set up on an Ubuntu VM running under virtualbox.

I did find that area of the makefile, but I don't think I can call those shell commands as they are. I vaguely remember playing with this in the past, I may have been missing a font or something.

Something you could try is renaming your fonts down one size (i.e. rename font-large.in to font-med.in etc)

In the mean time I'll see if I can get that script to run.

Morgan.

Andrew Coutts

unread,
Apr 30, 2012, 2:56:35 PM4/30/12
to Magic Lantern firmware development
Thanks for taking a look for me. Unfortunately even the small font is
twice how big as it should be. The 5dc bmp vram is only 360x240 pixels
while all of the cameras that run ML are 720x480.

"Sztupák Sz. Zsolt"

unread,
Apr 30, 2012, 5:05:55 PM4/30/12
to ml-d...@googlegroups.com
I made two smaller fonts:

./generate-font lucidasanstypewriter-8 6 5 > lucidasans8
./generate-font lucidasanstypewriter-10 6 7 > lucidasans10

I couldn't find a smaller font on my system, and probably they won't be
visible anyway. You still need to run mkfont on this output. If you need
smaller please tell, but it's a pain to get bigtext running on newer
linuxes (it depends on a running font server, with fonts installed,
which newer linuxes do not have and do not use. Probably that's why you
couldn't get it run under OSX either)

SztupY
lucidasans10
lucidasans8

Eduardo Pérez

unread,
Apr 30, 2012, 5:20:28 PM4/30/12
to ml-d...@googlegroups.com
I finally managed to produce the fonts, but then saw your message, so
there is no point now. "lucidasans10" is as small as I would go,
personally ("lucidasans8 even contains some illegible letters).

Edu.

Eduardo Pérez

unread,
Apr 30, 2012, 4:52:43 PM4/30/12
to ml-d...@googlegroups.com
I have bigtext compiled, and seems to be running "ok" (had to install
XFS along some fixed fonts): I can produce a "Hello word" with
characters 7 pixels wide and 8 pixels height (I do not think you can go
smaller than that, and remain readable).

However, I still do not know how to make the jump from the Makefile to
bigtext: I'm still trying to understand how the Makefile calls bigtext,
and what is it expected to produce; stay tuned!

Edu.

Morgan Look

unread,
Apr 30, 2012, 11:26:18 PM4/30/12
to ml-d...@googlegroups.com
I assume the 1100D etc would need a similar font?
> For more options, visit this group at http://groups.google.com/group/ml-devel?hl=en<lucidasans10.txt><lucidasans8.txt>

nanomad

unread,
May 1, 2012, 5:35:00 AM5/1/12
to ml-d...@googlegroups.com
The issue with the 1100D is slightly different. Small fonts are not
showing up correctly due to the different pixel aspect ratio.
Reply all
Reply to author
Forward
0 new messages