diff options
| author | Kenichi Handa | 2006-12-20 07:07:13 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2006-12-20 07:07:13 +0000 |
| commit | a8986f4c91692fc8c4dafb7ad4e3fa305e348850 (patch) | |
| tree | 62563713796557478cfe38ccf66277ea4af93153 /src | |
| parent | 4bc5d7668ef47295810f28a14d67b4a9e12a341f (diff) | |
| download | emacs-a8986f4c91692fc8c4dafb7ad4e3fa305e348850.tar.gz emacs-a8986f4c91692fc8c4dafb7ad4e3fa305e348850.zip | |
(x_load_resources): Setup the default fontSet X reource.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xrdb.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/xrdb.c b/src/xrdb.c index 988db614c41..6885123c194 100644 --- a/src/xrdb.c +++ b/src/xrdb.c | |||
| @@ -610,6 +610,29 @@ x_load_resources (display, xrm_string, myname, myclass) | |||
| 610 | 610 | ||
| 611 | #endif /* not USE_MOTIF */ | 611 | #endif /* not USE_MOTIF */ |
| 612 | 612 | ||
| 613 | #ifdef HAVE_X_I18N | ||
| 614 | { | ||
| 615 | #ifdef USE_MOTIF | ||
| 616 | Bool motif = True; | ||
| 617 | #else /* not USE_MOTIF */ | ||
| 618 | Bool motif = False; | ||
| 619 | #endif /* not USE_MOTIF */ | ||
| 620 | /* Setup the default fontSet resource. */ | ||
| 621 | extern char *xic_create_fontsetname P_ ((char *base_fontname, Bool motif)); | ||
| 622 | char *fontsetname = xic_create_fontsetname (helv, motif); | ||
| 623 | int len = strlen (fontsetname); | ||
| 624 | char *buf = line; | ||
| 625 | |||
| 626 | /* fontsetname may be very long. */ | ||
| 627 | if (len + 16 > 256) | ||
| 628 | buf = alloca (len + 16); | ||
| 629 | sprintf (buf, "Emacs*fontSet: %s", fontsetname); | ||
| 630 | XrmPutLineResource (&rdb, buf); | ||
| 631 | if (fontsetname != helv) | ||
| 632 | xfree (fontsetname); | ||
| 633 | } | ||
| 634 | #endif /* HAVE_X_I18N */ | ||
| 635 | |||
| 613 | user_database = get_user_db (display); | 636 | user_database = get_user_db (display); |
| 614 | 637 | ||
| 615 | /* Figure out what the "customization string" is, so we can use it | 638 | /* Figure out what the "customization string" is, so we can use it |