On Tue, 24 Feb 2009, Dotan Cohen wrote:
2009/2/24 Matan Ziv-Av <ma...@svgalib.org>:
On Tue, 24 Feb 2009, Dotan Cohen wrote:
I have many nice Hebrew fonts that I would like to use for my system
font, however, they all have very ugly English letters. Is there a way
to change the font that will be used in English in these Hebrew fonts?
You can use fontforge to generate a new font file with Hebrew letters from
one file and the rest from another. Fontforge supports scripting, so you
don't even need to use the GUI. See here for script language reference and
simple tutorial:
http://fontforge.sourceforge.net/scripting.html
http://fontforge.sourceforge.net/scripting-tutorial.html
Thanks, Matan. It looks like those links contain the info I need, if
only I knew to script in Python _and_ was familiar with the way
FontForge works. Maybe that is a project for another lifetime...
You don't need that much. Here's a script that takes the letters from a
hebrew fonts and adds them to another font:
Open("NachlieliCLM-BoldOblique.pfa")
SelectAll()
Scale(200)
Generate("tmp.ttf")
Open("SwaBI4nh.ttf")
MergeFonts("tmp.ttf")
Generate("SwaBI4nh-h.ttf")
There are two things you need to change:
Easy - the name of the fonts
A bit harder - change SelectAll with a function that only selects hebrew
letters. I used SelectAll since the Hebrew font I used only has Hebrew
letters.
--
Matan Ziv-Av. ma...@svgalib.org
_______________________________________________
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il