[Ruby] Fox, FXRuby
Yuri Leikind
y.leikind на sam-solutions.net
Ср Май 19 19:23:17 MSD 2004
On Wed, 19 May 2004 18:40:45 +0400
Тим Алексеевский <realtim на mail.ru> wrote:
> Привет!
>
> Yuri Leikind (Май 19, 16:11):
> > Кто-нибудь пишет/писал на FoX, используя FXRuby, или
> > просто на FoX, на C++ ?
> Пишет/писал
Я тут накатал письмо для FoX списка рассылки, придержал его, чтобы
сначала скачать и собрать последний FoX, дабы посмотреть, не изменилось ли что,
да подумал, может кто в этом списке рассылки сможет сказать что-нибудь
по поводу моих проблем.
Вот мое письмо
Hello all,
Though I code FoX using FXRuby, the questions I have are related directly to the FoX library.
When creating an FXFont instance, we set the encoding property. Encodings related
to the Russian language declared in FXFont.h are
FONTENCODING_ISO_8859_5 - cyrillic ISO charset, used very rarely
FONTENCODING_CYRILLIC - the same
FONTENCODING_KOI8_R - KOI8-R, Russian charset traditionally used in Unix, now in Linux
FONTENCODING_KOI8_U - KOI8-U, a variation of KOI8_R modified to include glyphs for the
Ukrainian language, these glyphs are missing in KOI8_R
FONTENCODING_KOI8 - KOI8 ??
FONTENCODING_RUSSIAN - the same
Here are my questions:
1) What is FONTENCODING_KOI8 here? KOI8 is just a family of charsets, including KOI8-R and KOI8-U.
2) Why is ISO_8859_5 called Cyrillic in FXFontDialog? This is not quite evident for a Russian speaking
user that Cyrillic _is_ ISO 8859 5, and not CP1251 or whatever?
3) The charset used in Windows for Russian is CP1251. It is missing in the list of encodings in FXFont.h,
but I found out, to my great astonishment, that FXFont objects created with encoding = 5
(FONTENCODING_ISO_8859_5 or FONTENCODING_CYRILLIC) render text written in CP2151.
Evidently fonts created are CP1251 fonts?.. Or is there something I am missing?
4) If I want to use FXFontDialog under Linux to choose some KOI8-R font, I choose "Russian" in Character Set
dropdown list. FXFontDesc objects returned by FXFontDialog in this case have encoding set to 17, that is
FONTENCODING_KOI8 or FONTENCODING_RUSSIAN. The list of font families shown in FXFontDialog has just 2 families,
though I have far greater number of KOI8-R fonts. I can view them in, say, gtkfontsel. Or I can even create
an FXFont object with encoding set to FONTENCODING_RUSSIAN and face set to "helvetica", though helvetica
is not shown in the list of font families in FXFontDialog with "Russian" in Character Set.
--
Best regards,
Yuri Leikind
Подробная информация о списке рассылки Ruby