public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
From: Jon TURNEY <jon.turney@dronecode.org.uk>
To: cygwin-xfree@cygwin.com
Cc: mikedep333@gmail.com
Subject: Re: How do fonts work when you have no font packages installed?
Date: Sun, 06 Jul 2014 15:08:00 -0000	[thread overview]
Message-ID: <53B9666E.5030003@dronecode.org.uk> (raw)
In-Reply-To: <CAMKht8gLECEqvA7HuYbk1ajW=JHc+kjUZveerVh=i=DV3rfHNg@mail.gmail.com>

On 04/07/2014 08:16, Michael DePaulo wrote:
> I just installed cygwin64 with only the base packages, "xorg-server",
> and its dependencies installed.
>
> The FAQ (2014-04-29) states:
> 3.5. My favourite font has gone! The font Emacs uses is just boxes
> Only minimal fonts will be installed after the upgrade.
>
> However, on my system, /usr/share/fonts/ is empty.

The X server has a version of 6x13 fixed font built-in, to allow it and 
(some) apps which use core fonts, to operate in this situation.

If some local X clients were installed, this would (hopefully) cause any 
X core fonts they require to be installed.

> Yet I am able to XDMCP into a GNOME2 CentOS 6.5 machine and all the
> fonts show up fine with the handful of apps I tested.
>
> Can someone explain how text is being rendered? Is Cygwin Xwin using
> fonts from the Windows OS?

While this is technically possible by adding the Windows font directory 
to the X server font path, that is not done.

(Although those fonts are made available to local clients by telling 
fontconfig to look in the Windows font directory, although this is not 
technically perfect as there isn't any mechanism to tell fontconfig to 
update it's cache when Windows fonts are added or removed)

 > Are the fonts being rendered client-side via XRender?

Yes, if the apps you tested are modern, client-side fonts are almost 
certainly being used.  [1] explains this fairly well:

"The first X11 clients used the core X11 protocol to draw text, as that 
was the only choice. [...] Because GTK+ and Qt, the toolkits behind 
several applications including all GNOME and KDE applications, switched 
to Xft, many programs on most desktops [...] now use Xft."

Core fonts are a legacy feature.

If you want to use an older remote application which requires a 
particular core font, you will have to install it.

[1] http://en.wikibooks.org/wiki/Guide_to_X11/Fonts

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


  reply	other threads:[~2014-07-06 15:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-04  7:16 Michael DePaulo
2014-07-06 15:08 ` Jon TURNEY [this message]
2014-07-06 15:34   ` Michael DePaulo

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=53B9666E.5030003@dronecode.org.uk \
    --to=jon.turney@dronecode.org.uk \
    --cc=cygwin-xfree@cygwin.com \
    --cc=mikedep333@gmail.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).