Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: "SooHyoung Oh" <shoh@duonix.com>
To: <lablgtk@kaba.or.jp>
Cc: "Caml-List" <caml-list@inria.fr>
Subject: [Caml-list] lablgtk: How to select CJK font on Windows?
Date: Thu, 12 Sep 2002 15:25:50 +0900	[thread overview]
Message-ID: <002901c25a25$3d285b60$fe00a8c0@hama> (raw)


Is anyone using lablgtk on Windows?

I'm using lablgtk on Windows 2000.
It's VERY VERY good for GUI applications.

As you know, we can input utf-8 with vim ver.6
It seems that the code is encoded by utf-8 after a command "set
encoding=utf-8".
I made some ocaml/lablgtk file with gvim which is gui version of vim ver. 6.

The problem is:
I can make an window with a title which has Korean font
but I CAN'T make button with Korean label.
I think the problem is related with "font".
(Anyone disagree?)

So, I tested with several methods.
* set LANG=KO on environment

(1) setlocale
Main.init ~setlocale:true ();

(2) set GTK_SETLOCALE=1 on environment

(3) add the following line in the program
Rc.add_default_file "gtkrc.ko"

(Question) How to set font name on "gtkrc.ko" file?
What is correct font name in the following?

--- gtkrc.ko ---
style "default"
{
    font = <font name>
    ...
}
class "GtkWidget" style "default"

---
SooHyoung Oh
tel: 02)583-8709, 042)861-8649
cell. phone: 011-453-4303
web: http://www.duonix.com


-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


                 reply	other threads:[~2002-09-12  6:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='002901c25a25$3d285b60$fe00a8c0@hama' \
    --to=shoh@duonix.com \
    --cc=caml-list@inria.fr \
    --cc=lablgtk@kaba.or.jp \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox