Changing the English characters of Hebrew fonts.

Changing the English characters of Hebrew fonts.

Dov Grobgeld dov.grobgeld at gmail.com
Tue Feb 24 17:04:57 IST 2009


If you are using fontconfig, which at least KDE and Gtk are using, then you
may want to use a Hebrew font without any Latin letters. fontconfig does
font matching per character according to a priority queue. If the highest
priority font does not contain a given glyph, then the next font in the
queue gets the chance and so on. Thus if you put a Hebrew only font at the
top of the queue it will only supply the Hebrew characters.

This is how "sans", "serif" and "monotype" work. A nice program for checking
what glyphs you get for the different fontconfig fonts is gucharmap.

Regards,
Dov

2009/2/24 Dotan Cohen <dotancohen at gmail.com>

> > 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.
> >
>
> Thanks, Matan!
>
> 1) The default font viewers in KDE apply English letters. How can I
> know which letters come in any one font?
>
> 2) This works on fonts installed in ~/.fonts or elsewhere?
>
> Thanks!
>
> --
> Dotan Cohen
>
> http://what-is-what.com
> http://gibberish.co.il
>
> א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
> ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
> А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
> а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
> ä-ö-ü-ß-Ä-Ö-Ü
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20090224/807ba3b2/attachment.html>


More information about the Linux-il mailing list