DDD and Fonts
=============

DDD uses Xft and fontconfig for font rendering.  Fonts are provided by
the application, not by the X server.  Scalable fonts (TrueType,
OpenType, Type 1) are supported and anti-aliased.  The old X server-side
fonts are no longer used.


Choice of fonts
===============

With version ddd-3.5, the default fonts used by DDD are Liberation Fonts, 
which are designed to be compatible with Times New Roman, Arial, and 
Courier New.  They are licensed under the SIL Open Font License[1].

  Variable Width Font:  Liberation Sans
  Fixed Width Font:     Liberation Mono
  Data Font:            Liberation Mono

To change a font, go to Edit > Preferences > Appearance:

  - Select the Variable Width Font, the Fixed Width Font and the
    Data Font from the drop-down lists.
  - Set the size of each font with the spin box next to it.

The drop-down lists show the fonts known to fontconfig. List them with:
  $ fc-list
  $ fc-list :spacing=mono family


Missing fonts
=============

If a font is not installed, fontconfig substitutes another font.
Check whether the Liberation fonts are available:

  $ fc-match "Liberation Sans"
  $ fc-match "Liberation Mono"

If the output shows a different family, the fonts are not installed.


Installing fonts
================

Install the Liberation fonts with your package manager:
  $ sudo apt-get install fonts-liberation     (Debian/Ubuntu)
  $ sudo dnf install liberation-fonts         (Fedora)

If you install fonts manually, place them in ~/.local/share/fonts (for your user)
or a system font directory, then refresh Fontconfig’s cache:

  $ fc-cache -fv

Check with "fc-match" and restart DDD.


Using X2Go server
=================

X2Go[2] is a remote desktop application, similar VNC[3] or RDP[4], based
on the NX (NoMachine) libraries[5].  The Fonts are rendered by DDD,
so they must be installed on the machine where DDD runs, not on the machine
showing the display. The old X2Go font-path workaround is no longer needed.


[1] http://scripts.sil.org/OFL
[2] https://wiki.x2go.org/doku.php
[3] https://en.wikipedia.org/wiki/Virtual_Network_Computing
[4] https://en.wikipedia.org/wiki/Remote_Desktop_Protocol
[5] https://en.wikipedia.org/wiki/NX_technology

