Other Help Topics :: fonts, defoma, and *.dsl files



I've been trying to make a dsl for the program lilypond.  I've been able to install it on a liveCD system without any problems.  It requires defoma and ec-fonts-mftraced, and tex as well.  The program runs fine when I first install it from *.deb files, but then it can't find the fonts when the lilypond.dsl I made gets loaded.  Any help on how fonts are loaded would be helpful.

I tried
mktexlsr
defoma-font -qt reregister-all /etc/defoma/hints/ecfonts.hints

but the application still couldn't find the fonts (ecrm10.pfa files, which is there).  Is there something I'm missing?

Here is how I made the dsl, if that's any help:

loaded the dsl-dpkg.dsl and gnu-utils.dsl
set up the /etc/apt/sources.list file
ran apt-get update
ran touch mymarker
ran apt-get install lilypond
tried it out and it worked
ran find / -not -type 'd' -cnewer mymarker | grep -v "\/proc\/" | tee files
removed all of the /ramdisk's from that file so the dsl will be OK
tar -czvf lilypond.dsl --no-recursion --numeric-owner -T files

Once it works I can go back and remove files that are already in other dsl files, like python and GTK stuff.

I don't know why it works prior to creating an extension.
If you're running the program only in X you might be able to use xset:
xset +fp /path/to/fonts
I don't know if this works with all fonts and applications.

i extracted a font.deb file and found this postinst file
Code Sample
#!/bin/sh
set -e
# Automatically added by dh_installxfonts
if which update-fonts-dir >/dev/null 2>&1; then
update-fonts-dir misc;update-fonts-alias misc
fi
# End automatically added section

maybe its enough to call:
Code Sample
update-fonts-dir the_dir_the_font_is_in

Also, look in some of my other gtk2 type extensions for the
startup wrappers...

They have the lines in there to setup/update defoma.
Copy, paste - then execute..

( make sure you don't have any open apps that
may require ttf fonts,when running this executable  
or defoma will give you an error.. )

73
ke4nt

mikshaw, thanks, but that didn't work.

ke4nt1, thanks, but that didn't work.  I had an update-fonts-alias and an update-fonts-size but no update-fonts-dir.  None of the install scripts you had contained anything I could even try to execute in my package.

Who knows.  Font's are like the printer: easy in windows but almost impossible in Linux.  I'll try using a different program.

I think the reason I'm not getting a compleate recovery of the files is from errors in tar, but they scroll by too quickly to see.  I tried:

tar -xzvf lilypond.dsl > output 2> myerrors

but I got two zero length files.  I could use any advice on that., too.

Next Page...
original here.