From: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: Help-gnu-emacs@gnu.org
Subject: fontsets
Date: Fri, 10 Dec 2004 11:59:48 +0100 [thread overview]
Message-ID: <9C18A042-4A9A-11D9-B1FC-000D932A32C4@Web.DE> (raw)
Hello!
Last night I had no dream -- at least I can only remember the one from
this morning. But -- I had success!
For a GNU Emacs running under X11 it works to creates fontsets like
these:
(create-fontset-from-fontset-spec
"-*-lucida sans
typewriter-medium-r-normal-*-11-*-*-*-*-*-fontset-
lucida_sans_typewriter_11,
latin-iso8859-1:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-1,
latin-iso8859-2:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-2,
latin-iso8859-3:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-3,
latin-iso8859-4:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-4,
latin-iso8859-5:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-5,
latin-iso8859-8:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-8,
latin-iso8859-9:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-9,
latin-iso8859-10:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-10,
latin-iso8859-11:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-11,
latin-iso8859-13:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-13,
latin-iso8859-15:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-15,
iso10646-1:-*-lucida sans
typewriter-medium-r-*-11-*-iso10646-1" t 'noerror)
;
(create-fontset-from-fontset-spec
"-*-lucida sans
typewriter-medium-r-normal-*-0-*-*-*-*-*-fontset-
lucida_sans_typewriter_110,
latin-iso8859-1:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-1,
latin-iso8859-2:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-2,
latin-iso8859-3:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-3,
latin-iso8859-4:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-4,
latin-iso8859-5:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-5,
latin-iso8859-8:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-8,
latin-iso8859-9:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-9,
latin-iso8859-10:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-10,
latin-iso8859-11:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-11,
latin-iso8859-13:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-13,
latin-iso8859-15:-*-lucida sans
typewriter-medium-r-*-11-*-iso8859-15,
iso10646-1:-*-lucida sans
typewriter-medium-r-*-11-*-iso10646-1" t 'noerror)
;
(create-fontset-from-fontset-spec
"-*-bitstream vera sans
mono-medium-r-normal-*-12-*-*-*-*-*-fontset-vera_sans_mono_12,
latin-iso8859-1:-*-bitstream vera sans
mono-medium-r-*-12-*-iso8859-1,
latin-iso8859-2:-*-bitstream vera sans
mono-medium-r-*-12-*-iso8859-2,
latin-iso8859-3:-*-bitstream vera sans
mono-medium-r-*-12-*-iso8859-3,
latin-iso8859-4:-*-bitstream vera sans
mono-medium-r-*-12-*-iso8859-4,
latin-iso8859-9:-*-bitstream vera sans
mono-medium-r-*-12-*-iso8859-9,
latin-iso8859-10:-*-bitstream vera sans
mono-medium-r-*-12-*-iso8859-10,
latin-iso8859-13:-*-bitstream vera sans
mono-medium-r-*-12-*-iso8859-13,
latin-iso8859-14:-*-bitstream vera sans
mono-medium-r-*-12-*-iso8859-14,
latin-iso8859-15:-*-bitstream vera sans
mono-medium-r-*-12-*-iso8859-15" t 'noerror)
;
(create-fontset-from-fontset-spec
"-*-bitstream vera sans
mono-medium-r-normal-*-0-*-*-*-*-*-fontset-vera_sans_mono_120,
latin-iso8859-1:-*-bitstream vera sans
mono-medium-r-*-12-*-iso8859-1,
latin-iso8859-2:-*-bitstream vera sans
mono-medium-r-*-12-*-iso8859-2,
latin-iso8859-3:-*-bitstream vera sans
mono-medium-r-*-12-*-iso8859-3,
latin-iso8859-4:-*-bitstream vera sans
mono-medium-r-*-12-*-iso8859-4,
latin-iso8859-9:-*-bitstream vera sans
mono-medium-r-*-12-*-iso8859-9,
latin-iso8859-10:-*-bitstream vera sans
mono-medium-r-*-12-*-iso8859-10,
latin-iso8859-13:-*-bitstream vera sans
mono-medium-r-*-12-*-iso8859-13,
latin-iso8859-14:-*-bitstream vera sans
mono-medium-r-*-12-*-iso8859-14,
latin-iso8859-15:-*-bitstream vera sans
mono-medium-r-*-12-*-iso8859-15" t 'noerror)
;;
They are based on TT or PS fonts, so they're scalable from its nature,
and this obviously works in GNU Emacs too. And there is a difference
whether you use the scalable size 0 or the scaled size 11 or 12 in the
fontset-spec. I then decided to create files with the usable fonts and
fontsets like
(if (string= "x" window-system)
(progn
(message "Sind in X11")
(load "site-fonts-x11.el" t t t)
(load "site-fontsets-x11.el" t t t)
))
and checked that the carbonized Emacsen return "mac" as their
window-system, so it's easy to create a switch in .emacs to set up both
worlds, files with x11 or with aqua in the name.
I still have some problems in the representation of UTF-8 filenames and
even in the characters inside a buffer of a file that is sufficiently
described to be
;;; -*- mode: Emacs-Lisp; coding: iso-8859-15-unix; -*-
or
;;; -*- mode: Text; coding: iso-8859-15; -*-
for some fontsets.
I'll try to investigate whether it works in a carbonized Emacs too and
whether (and how!) it's possible to create a hierarchic menu for fonts
and fontsets for to see a reasonable choice instead of a pop-up window
that is a few screens high ...
--
Greetings
Pete
next reply other threads:[~2004-12-10 10:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-10 10:59 Peter Dyballa [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-07-08 12:17 LaTeX export: when is it more useful to use LuaTeX instead of pdfTeX? Juan Manuel Macías
2022-07-08 18:49 ` Thomas S. Dye
2022-07-09 2:23 ` Max Nikulin
2022-07-09 10:42 ` Juan Manuel Macías
2022-07-09 12:15 ` Max Nikulin
2022-07-09 14:58 ` Juan Manuel Macías
[not found] ` <b58ee3cc-c58c-b627-9cc5-51993020db2c@gmail.com>
2022-07-09 20:22 ` Juan Manuel Macías
2022-07-10 20:23 ` [possible patch] Basic fontspec code for LuaLaTeX and XelaTeX (was "LaTeX export: when is it more useful...") Juan Manuel Macías
2022-07-11 2:19 ` Ihor Radchenko
2022-07-11 14:19 ` Timothy
2022-07-11 15:00 ` Juan Manuel Macías
2022-07-11 17:45 ` fontsets (was: [possible patch] Basic fontspec code for LuaLaTeX and XelaTeX (was "LaTeX export: when is it more useful...")) Timothy
2022-07-11 22:09 ` fontsets Juan Manuel Macías
2022-07-12 7:12 ` fontsets Stefan Nobis
2022-07-12 11:37 ` fontsets Juan Manuel Macías
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=9C18A042-4A9A-11D9-B1FC-000D932A32C4@Web.DE \
--to=peter_dyballa@web.de \
--cc=Help-gnu-emacs@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.