all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bdf fonts in EmacsW32 ?
@ 2008-06-11  9:07 Sergei
  2008-06-11  9:45 ` Juanma Barranquero
       [not found] ` <mailman.13064.1213177535.18990.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Sergei @ 2008-06-11  9:07 UTC (permalink / raw)
  To: help-gnu-emacs

More or less according to the EmacsNT FAQ, I used to use my bdf font
under "GNU Emacs 21.1.1 (i386-msvc-nt5.1.2600) of 2001-10-22".

For this end I had this in my .emacs :

,----
| (setq bdf-directory-list
|       '("c:/cygwin/usr/local/etc/fonts"
|         "//tsclient/C/cygwin/usr/local/etc/fonts"))
| (setq w32-bdf-filename-alist
|       (w32-find-bdf-fonts bdf-directory-list))
| (create-fontset-from-fontset-spec
|       "-*-fixed-medium-r-normal-*-18-*-*-*-c-*-fontset-bdf,
| utf-8:-*-fixed-medium-r-normal-*-18-*-*-*-c-*-iso10646-1" t)
| (set-default-font "fontset-bdf")
| (add-to-list 'default-frame-alist '(font . "fontset-bdf"))
`----

Now I want to use the same fonts for a newer EmacsW32
"GNU Emacs 23.0.61 (i386-mingw-nt5.1.2600) of 2008-03-25"
-- and this arrangement does not work :(

I see the font specs if I evaluate
(x-list-fonts "-*-fixed-medium-*")
but
(set-default-font "fontset-bdf") and
(add-to-list 'default-frame-alist '(font . "fontset-bdf"))
return nil, and creating new frame results in the error message:
"set-frame-font: Font `fontset-bdf' is not defined"

What am I doing wrong?

--
Sergei


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: bdf fonts in EmacsW32 ?
  2008-06-11  9:07 bdf fonts in EmacsW32 ? Sergei
@ 2008-06-11  9:45 ` Juanma Barranquero
       [not found] ` <mailman.13064.1213177535.18990.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 6+ messages in thread
From: Juanma Barranquero @ 2008-06-11  9:45 UTC (permalink / raw)
  To: Sergei; +Cc: help-gnu-emacs

On Wed, Jun 11, 2008 at 11:07, Sergei <sergio.pokrovskij@gmail.com> wrote:

> What am I doing wrong?

Currently the bdf code is not being compiled on Windows, because it is
not yet updated to use the new font backend. According to a comment in
font.h:

    /* FONT-TYPE is a symbol indicating a font backend; currently `x',
       `xft', `ftx' are available on X and gdi on Windows.
       For Windows, `bdf' and `uniscribe' backends are in progress.
       For Mac OS X, we need `atm'.  */

though the comment is a bit stale, as the uniscribe backend is already working.

   Juanma




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: bdf fonts in EmacsW32 ?
       [not found] ` <mailman.13064.1213177535.18990.help-gnu-emacs@gnu.org>
@ 2008-06-11 10:04   ` Sergei
  2008-06-11 10:44   ` Jason Rumney
  1 sibling, 0 replies; 6+ messages in thread
From: Sergei @ 2008-06-11 10:04 UTC (permalink / raw)
  To: help-gnu-emacs

Thank you,    Juanma.

--
Sergei




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: bdf fonts in EmacsW32 ?
       [not found] ` <mailman.13064.1213177535.18990.help-gnu-emacs@gnu.org>
  2008-06-11 10:04   ` Sergei
@ 2008-06-11 10:44   ` Jason Rumney
  2008-06-11 11:54     ` Juanma Barranquero
  1 sibling, 1 reply; 6+ messages in thread
From: Jason Rumney @ 2008-06-11 10:44 UTC (permalink / raw)
  To: help-gnu-emacs

On Jun 11, 10:45 am, "Juanma Barranquero" <lek...@gmail.com> wrote:

>        For Windows, `bdf' and `uniscribe' backends are in progress.

In progress is probably a bit of an overestimate. I made a start on a
generic bdf backend from which a new w32 bdf backend could be derived
by identifying the file parsing code that could be made platform
independant and copying it to a new file. But then I had second
thoughts and will probably instead create a w32 freetype backend,
which will provide support for many more font formats, but will
require the freetype library to be installed.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: bdf fonts in EmacsW32 ?
  2008-06-11 10:44   ` Jason Rumney
@ 2008-06-11 11:54     ` Juanma Barranquero
  2008-06-11 11:56       ` Juanma Barranquero
  0 siblings, 1 reply; 6+ messages in thread
From: Juanma Barranquero @ 2008-06-11 11:54 UTC (permalink / raw)
  To: Jason Rumney; +Cc: help-gnu-emacs

On Wed, Jun 11, 2008 at 12:44, Jason Rumney <jasonrumney@gmail.com> wrote:

> But then I had second
> thoughts and will probably instead create a w32 freetype backend,
> which will provide support for many more font formats, but will
> require the freetype library to be installed.

That is nice to hear.

A few weeks ago I took a look at ftfont.c, with the idea of trying to
implement a freetype backend for w32 (I know very little about the
font handling in Emacs, but it would've been a great learning
experience). Unfortunately, I didn't go too far because, if I
understand it right, the new font code mixes three issues: font name
handling (I mean, XLFD vs. freetype names), glyph handling (uniscribe,
gdi, freetype) and font selection (fontconfig, native Windows API,
etc.). Excising fontconfig code from ftfont.c seems like a task for
someone who knows what he's doing :( :)

I think it'd be useful to have clear, different APIs for the three
aspects mentioned above. Or, if they exist, I missed them and would've
delighted to get a pointer...

   Juanma




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: bdf fonts in EmacsW32 ?
  2008-06-11 11:54     ` Juanma Barranquero
@ 2008-06-11 11:56       ` Juanma Barranquero
  0 siblings, 0 replies; 6+ messages in thread
From: Juanma Barranquero @ 2008-06-11 11:56 UTC (permalink / raw)
  To: Jason Rumney; +Cc: help-gnu-emacs

On Wed, Jun 11, 2008 at 13:54, Juanma Barranquero <lekktu@gmail.com> wrote:
> handling (I mean, XLFD vs. freetype names), glyph handling (uniscribe,

s/freetype names/fontconfig names/;

  J




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-06-11 11:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-11  9:07 bdf fonts in EmacsW32 ? Sergei
2008-06-11  9:45 ` Juanma Barranquero
     [not found] ` <mailman.13064.1213177535.18990.help-gnu-emacs@gnu.org>
2008-06-11 10:04   ` Sergei
2008-06-11 10:44   ` Jason Rumney
2008-06-11 11:54     ` Juanma Barranquero
2008-06-11 11:56       ` Juanma Barranquero

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.