View previous topic :: View next topic |
Author |
Message |
ktsaou Tux's lil' helper
Joined: 10 Jul 2003 Posts: 80
|
Posted: Sun Dec 02, 2012 10:12 pm Post subject: mkfontscale does not produce all encodings |
|
|
hi,
I am trying to get iso8859-7 (Greek) fonts from core fonts and other scalable fonts.
However, mkfontscale does not produce this encoding and I cannot figure out how to do it.
I tried this:
Code: | mkfontscale -e /usr/share/fonts/encodings/ -a iso8859-7 |
It does not work.
However this one works:
Code: | mkfontscale -e /usr/share/fonts/encodings/ -a microsoft-cp1253 |
This one produces cp1253 entries in fonts.scale.
Is it possible to generate iso8859-7 entries somehow? |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Mon Dec 03, 2012 3:21 am Post subject: Re: mkfontscale does not produce all encodings |
|
|
ktsaou wrote: | hi,
I am trying to get iso8859-7 (Greek) fonts from core fonts and other scalable fonts.
Is it possible to generate iso8859-7 entries somehow? |
Could you first tell what do you need those for ? There are very few programs that still use core fonts. |
|
Back to top |
|
|
ktsaou Tux's lil' helper
Joined: 10 Jul 2003 Posts: 80
|
Posted: Mon Dec 03, 2012 12:17 pm Post subject: Re: mkfontscale does not produce all encodings |
|
|
VoidMage wrote: | Could you first tell what do you need those for ? There are very few programs that still use core fonts. |
Well, I just need scalable TTF fonts in iso-8859-7.
I tried all available fonts in portage. I can only get fixed and terminus in iso-8859-7.
I also tried TTF fonts moved from a windows 7 machine. Cannot get them in iso-8859-7.
Any ideas? |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Mon Dec 03, 2012 4:56 pm Post subject: |
|
|
Any chance you're confusing a font problem with a text encoding problem ? |
|
Back to top |
|
|
ktsaou Tux's lil' helper
Joined: 10 Jul 2003 Posts: 80
|
Posted: Mon Dec 03, 2012 8:11 pm Post subject: |
|
|
Well, I am not sure.
I need to show Greek text with libxosd.
I use osd_cat like this:
Code: | echo -e "\n\ntest - καλημέρα" | osd_cat --align=center --pos=top --font="-xos4-terminus-bold-r-normal--32-320-72-72-c-160-iso10646-1" |
Instead of displaying Greek text, it gives block characters.
If If I change iso10646-1 in the font definition with iso8859-7, it works:
Code: | echo -e "\n\ntest - καλημέρα" | osd_cat --align=center --pos=top --font="-xos4-terminus-bold-r-normal--32-320-72-72-c-160-iso8859-7" |
I understand it shouldn't work, since I feed osd_cat with unicode text. However it does work.
My locale is this:
Code: | $ locale
LANG=C
LC_CTYPE=el_GR.UTF-8
LC_NUMERIC=el_GR.UTF-8
LC_TIME=en_US.UTF-8
LC_COLLATE=el_GR.UTF-8
LC_MONETARY=el_GR.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=el_GR.UTF-8
LC_NAME=el_GR.UTF-8
LC_ADDRESS=el_GR.UTF-8
LC_TELEPHONE=el_GR.UTF-8
LC_MEASUREMENT=el_GR.UTF-8
LC_IDENTIFICATION=el_GR.UTF-8
LC_ALL=
|
The problem now is that I cannot produce any other iso8859-7 fonts.
Any ideas? |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Mon Dec 03, 2012 9:01 pm Post subject: |
|
|
Is perhaps aosd_cat an option ?
That would get around this problem altogether - you could simply pass 'serif' or 'sans-serif' as font then. |
|
Back to top |
|
|
ktsaou Tux's lil' helper
Joined: 10 Jul 2003 Posts: 80
|
Posted: Thu Dec 06, 2012 10:09 am Post subject: |
|
|
Tried it. It does not work.
I also tried fonts in cp1253 which are very close to iso8859-7 (2 letters are different). The text is not shown properly again.
I guess libxosd converts the unicode text to something else before showing it. In the case of iso8859-7 the converted text and the font match and the text is shown as expected. In all other cases the text is converted to something unexpected. I cannot figure out if locale has something to do with it. |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Thu Dec 06, 2012 8:47 pm Post subject: |
|
|
ktsaou wrote: | Tried it. It does not work. |
In which way exactly ? With the default settings it worked fine here, though the text was a bit hard to notice (xcompmgr+gray background didn't do well with default green, but it was still readable). |
|
Back to top |
|
|
ktsaou Tux's lil' helper
Joined: 10 Jul 2003 Posts: 80
|
Posted: Thu Dec 06, 2012 9:29 pm Post subject: |
|
|
the default font is 'fixed' (I checked the source of libxosd).
Fixed and terminus fonts work.
Generally you cannot use any font that does not have an iso8859-7 encoding.
do this:
Code: | $ xlsfonts | grep iso8859-7 |
You can perfectly use any font listed, even by giving *-* for the encoding, provided LC_ALL=el_GR.UTF8.
I tried all these in ubuntu too. Same behavior. Ubuntu however has a few more fonts with iso8859-7 encodings. The pattern though, is the same. The fonts with iso8859-7 encoding work. Nothing else.
It is strange, I know... |
|
Back to top |
|
|
VoidMage Watchman
Joined: 14 Oct 2006 Posts: 6196
|
Posted: Thu Dec 06, 2012 11:52 pm Post subject: |
|
|
No, I asked about aosd_cat. It uses pango, so whatever font you see in the standard gui apps, can be used in aosd_cat too. |
|
Back to top |
|
|
|