Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mkfontscale does not produce all encodings
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ktsaou
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2003
Posts: 80

PostPosted: Sun Dec 02, 2012 10:12 pm    Post subject: mkfontscale does not produce all encodings Reply with quote

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
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Dec 03, 2012 3:21 am    Post subject: Re: mkfontscale does not produce all encodings Reply with quote

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
View user's profile Send private message
ktsaou
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2003
Posts: 80

PostPosted: Mon Dec 03, 2012 12:17 pm    Post subject: Re: mkfontscale does not produce all encodings Reply with quote

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
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Dec 03, 2012 4:56 pm    Post subject: Reply with quote

Any chance you're confusing a font problem with a text encoding problem ?
Back to top
View user's profile Send private message
ktsaou
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2003
Posts: 80

PostPosted: Mon Dec 03, 2012 8:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Dec 03, 2012 9:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
ktsaou
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2003
Posts: 80

PostPosted: Thu Dec 06, 2012 10:09 am    Post subject: Reply with quote

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
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Thu Dec 06, 2012 8:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
ktsaou
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2003
Posts: 80

PostPosted: Thu Dec 06, 2012 9:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Thu Dec 06, 2012 11:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum