Fonts: - fonts/hack: Hack 3.003 (Expat + Bitstream Vera, from Debian fonts-hack), installed to dt/fonts; config/fonts.conf (the system's fontconfig plus that directory) exported by Xsession.d/0070.dtfonts and Dtlogin*environment. - sys.resources and dtlogin Xresources: Xft render tables in Hack 10 for renderTable, textRenderTable, labelRenderTable, buttonRenderTable (a render table wins over sys.font's *FontList; dtterm and text fields read the text table). dtterm (ported from MakroDE -- setlocale and the Xft renderer -- then fixed): - configure: Xft on by default, --disable-xft for machines without it. - TermPrimRenderXft.c: reads wchar_t in multibyte locales (it read the buffer as UTF-8 bytes: three boxes after every character), places every character in its cell on the baseline, fills the background, draws underline/overstrike/secure, wcwidth for wide and combining characters, borrows glyphs from fontconfig fallbacks (check mark, CJK), and makes its XftDraw at the first drawing (made in Initialize it was window 0, and the first string a BadDrawable that ended dtterm). - TermPrim.c AdjustWindowUnits: the cell from the renderer's extents when there is no XFontStruct (crashed with Xft); _DtTermPrimRenderFontExtents. - TermPrimRenderFont.c: with setlocale the buffer is wchar_t in UTF-8, the single-font renderer draws it as XChar2b (it drew boxes too). Screenshots: build/mcde-shots/dtterm-utf8b-crop.png, dtterm-classic-crop.png. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
1.2 KiB
Makefile
26 lines
1.2 KiB
Makefile
MAINTAINERCLEANFILES = Makefile.in
|
|
|
|
# MCDE: the fonts that come with the desktop -- Hack, the default (hack/README).
|
|
# They are installed under the CDE tree; every MCDE program adds this directory
|
|
# to fontconfig for itself (FcConfigAppFontAddDir), so nothing in the system's
|
|
# font configuration has to change.
|
|
hackdir = $(CDE_INSTALLATION_TOP)/fonts/hack
|
|
dist_hack_DATA = hack/Hack-Regular.ttf hack/Hack-Bold.ttf hack/Hack-Italic.ttf \
|
|
hack/Hack-BoldItalic.ttf hack/LICENSE hack/README
|
|
|
|
# The session's fontconfig file: the system's own configuration, plus the
|
|
# directory above. Xsession.d/0070.dtfonts exports FONTCONFIG_FILE for the
|
|
# session, Dtlogin*environment for the login screen; every X program of the
|
|
# session then finds Hack, MCDE's or not.
|
|
fontconfdir = $(CDE_INSTALLATION_TOP)/config
|
|
fontconf_DATA = fonts.conf
|
|
CLEANFILES = fonts.conf
|
|
fonts.conf: Makefile
|
|
{ echo '<?xml version="1.0"?>'; \
|
|
echo '<!DOCTYPE fontconfig SYSTEM "fonts.dtd">'; \
|
|
echo '<!-- MCDE: the system configuration, and the fonts of MCDE -->'; \
|
|
echo '<fontconfig>'; \
|
|
echo ' <include ignore_missing="yes">$(MCDE_FC_CONFDIR)/fonts.conf</include>'; \
|
|
echo ' <dir>$(CDE_INSTALLATION_TOP)/fonts</dir>'; \
|
|
echo '</fontconfig>'; } > $@
|