diff options
| author | Jan Djärv | 2011-02-14 18:21:10 +0100 |
|---|---|---|
| committer | Jan Djärv | 2011-02-14 18:21:10 +0100 |
| commit | 3928f2b67e69cd22995558cc205a2fc6aa33d477 (patch) | |
| tree | 1a384801162ad5afaa0e5fa7f4e8f0cb023d8d60 /doc | |
| parent | 4bb81cc2ba5b44f97b14f7c7ae0dd6b972e71677 (diff) | |
| download | emacs-3928f2b67e69cd22995558cc205a2fc6aa33d477.tar.gz emacs-3928f2b67e69cd22995558cc205a2fc6aa33d477.zip | |
Use *font for Xft font names for Lucid menus and dialogs.
* doc/emacs/xresources.texi (X Resources): Remove *faceName and replace it with
*font for Lucid.
* lwlib/lwlib-Xaw.c (make_dialog): Use *font even for Xft fonts. Try
XLoadQueryFont first and then Xft fonts.
* lwlib/xlwmenu.c (xlwmenu_default_font): Remove, does not work for
multi-display.
(xlwMenuResources): Remove XtNfaceName and XtNdefaultFace.
Make XtNFont a String resource.
(make_windows_if_needed): Call XFlush so later changes are seen by the
X server.
(remap_menubar): Use XtMoveWidget and then
XtResizeWidget/XtResizeWindow after XtPopup. Works better with
Compiz.
(make_drawing_gcs): Check if mw->menu.font is set.
(getDefaultXftFont): New function.
(openXftFont): faceName is now fontName. Try XLoadQueryFont first
and then XftFontOpenName.
(XlwMenuInitialize): Initialize mw->menu.font with XLoadQueryFont.
(XlwMenuClassInitialize): Remove initialization of
xlwmenu_default_font.
(fontname_changed): Renamed from facename_changed.
(XlwMenuSetValues): Use facename_changed.
* lwlib/xlwmenu.h: Remove Xt[CN]faceName and Xt[NC]defaultFace.
* lwlib/xlwmenuP.h (_XlwMenu_part): Remove faceName. Add fontName.
* src/xmenu.c (apply_systemfont_to_dialog): Apply to *dialog.font.
(apply_systemfont_to_menu): Set resources *menubar*font and
*popup*font. Remove defflt.
(set_frame_menubar, create_and_show_popup_menu): Call
apply_systemfont_to_menu before lw_create_widget.
* src/xrdb.c (x_load_resources): For LUCID and XFT, don't put a
resource that specifies helvetica for menus and dialogs.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/emacs/xresources.texi | 25 |
2 files changed, 12 insertions, 18 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index d04c0322862..ec57887a154 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-02-14 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * xresources.texi (X Resources): Remove *faceName and replace it with | ||
| 4 | *font for Lucid. | ||
| 5 | |||
| 1 | 2011-02-05 Chong Yidong <cyd@stupidchicken.com> | 6 | 2011-02-05 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * rmail.texi (Rmail Display): Document Rmail MIME support more | 8 | * rmail.texi (Rmail Display): Document Rmail MIME support more |
diff --git a/doc/emacs/xresources.texi b/doc/emacs/xresources.texi index 1482bbd0469..41a09a5f713 100644 --- a/doc/emacs/xresources.texi +++ b/doc/emacs/xresources.texi | |||
| @@ -428,29 +428,20 @@ and has its own resources. The resource specifications start with | |||
| 428 | @end iftex | 428 | @end iftex |
| 429 | 429 | ||
| 430 | @example | 430 | @example |
| 431 | Emacs.pane.menubar.faceName: Courier-12 | 431 | Emacs.pane.menubar.font: Courier-12 |
| 432 | @end example | 432 | @end example |
| 433 | 433 | ||
| 434 | @noindent | 434 | @noindent |
| 435 | To specify a font, use fontconfig font names as values to the @code{faceName} | 435 | To specify a font, use fontconfig font names as values to the @code{font} |
| 436 | resource. | 436 | resource, or old style names: |
| 437 | |||
| 438 | If Emacs is not built with the Xft library, Lucid menus and dialogs | ||
| 439 | can only display old style fonts. If Emacs is built with Xft and you | ||
| 440 | prefer the old fonts, you have to specify @samp{none} to | ||
| 441 | @code{faceName}: | ||
| 442 | 437 | ||
| 443 | @example | 438 | @example |
| 444 | Emacs.pane.menubar.faceName: none | 439 | Emacs.pane.menubar.font: lucidasanstypewriter-10 |
| 445 | Emacs.pane.dialog.faceName: none | ||
| 446 | @end example | 440 | @end example |
| 447 | 441 | ||
| 448 | @noindent | 442 | @noindent |
| 449 | To specify a non-Xft font, use @code{font}. For example: | 443 | Emacs first tries to open the font as an old style font, and if that fails |
| 450 | 444 | as an fontconfig font. In rare cases, Emacs might do the wrong thing. | |
| 451 | @example | ||
| 452 | Emacs.pane.menubar.font: lucidasanstypewriter-10 | ||
| 453 | @end example | ||
| 454 | 445 | ||
| 455 | @noindent | 446 | @noindent |
| 456 | The Lucid menus can display multilingual text in your locale with old style | 447 | The Lucid menus can display multilingual text in your locale with old style |
| @@ -480,7 +471,7 @@ Emacs.menu*.font: 8x16 | |||
| 480 | For dialog boxes, use @samp{dialog*}: | 471 | For dialog boxes, use @samp{dialog*}: |
| 481 | 472 | ||
| 482 | @example | 473 | @example |
| 483 | Emacs.dialog*.faceName: Sans-12 | 474 | Emacs.dialog*.font: Sans-12 |
| 484 | @end example | 475 | @end example |
| 485 | 476 | ||
| 486 | @noindent | 477 | @noindent |
| @@ -495,8 +486,6 @@ approach should work on both kinds of systems. | |||
| 495 | Here is a list of the specific resources for menu bars and pop-up menus: | 486 | Here is a list of the specific resources for menu bars and pop-up menus: |
| 496 | 487 | ||
| 497 | @table @code | 488 | @table @code |
| 498 | @item faceName | ||
| 499 | Xft font for menu item text. | ||
| 500 | @item font | 489 | @item font |
| 501 | Font for menu item text. | 490 | Font for menu item text. |
| 502 | @item fontSet | 491 | @item fontSet |