public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* How do fonts work when you have no font packages installed?
@ 2014-07-04  7:16 Michael DePaulo
  2014-07-06 15:08 ` Jon TURNEY
  0 siblings, 1 reply; 3+ messages in thread
From: Michael DePaulo @ 2014-07-04  7:16 UTC (permalink / raw)
  To: cygwin-xfree

I tried to send this email previously, but I think it did not go
through because I was not subscribed to the list yet.
--------

Hi,

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.

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? Are the fonts being rendered client-side via XRender?

Thanks in advance,
-Mike

mike@executor /usr
$ uname -a
CYGWIN_NT-6.3 executor 1.7.30(0.272/5/3) 2014-05-23 10:36 x86_64 Cygwin

mike@executor /usr
$ find . | grep fonts
./share/doc/groff-1.22.2/examples/hdtbl/fonts_n.ps
./share/doc/groff-1.22.2/examples/hdtbl/fonts_n.roff
./share/doc/groff-1.22.2/examples/hdtbl/fonts_x.ps
./share/doc/groff-1.22.2/examples/hdtbl/fonts_x.roff

mike@executor /usr
$ cd share

mike@executor /usr/share
$ ls
awk  file   icons  locale  man   p11-kit    pki     terminfo  texmf  zoneinfo
doc  groff  info   magic   misc  pkgconfig  tabset  texinfo   X11

mike@executor /usr/share
$ X -query galactica

--
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/


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

* Re: How do fonts work when you have no font packages installed?
  2014-07-04  7:16 How do fonts work when you have no font packages installed? Michael DePaulo
@ 2014-07-06 15:08 ` Jon TURNEY
  2014-07-06 15:34   ` Michael DePaulo
  0 siblings, 1 reply; 3+ messages in thread
From: Jon TURNEY @ 2014-07-06 15:08 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: mikedep333

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/


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

* Re: How do fonts work when you have no font packages installed?
  2014-07-06 15:08 ` Jon TURNEY
@ 2014-07-06 15:34   ` Michael DePaulo
  0 siblings, 0 replies; 3+ messages in thread
From: Michael DePaulo @ 2014-07-06 15:34 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: jon.turney

On Sun, Jul 6, 2014 at 11:08 AM, Jon TURNEY <jon.turney@dronecode.org.uk> wrote:
> 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."

Thank you very much, this is a very good answer. I was not aware of 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.

Yes, I've observed this too. At work we run an old (but actively
maintained) commercial Linux application written in Motif, and it
requires core fonts to be installed on the Windows machines running
Cygwin X11 or VcXsrv.

>
> [1] http://en.wikibooks.org/wiki/Guide_to_X11/Fonts
>
> --
> Jon TURNEY
> Volunteer Cygwin/X X Server maintainer

Thanks again,
-Mike DePaulo

--
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/


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

end of thread, other threads:[~2014-07-06 15:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-04  7:16 How do fonts work when you have no font packages installed? Michael DePaulo
2014-07-06 15:08 ` Jon TURNEY
2014-07-06 15:34   ` Michael DePaulo

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).