Writing C-code to create graphics on a Raspberry PI. O/S is raspbian v.9 aka "stretch", default installation from noobs. xlsfonts shows some fonts available, but there must be many more. How can I select fonts of various sizes and use them with the xlib text drawing functions? There are several font packages installed but they do not show up in xlsfonts - do I need to "activate" then in some way?
char *fontname_12="Liberation Mono:style=Bold"; // this won't work
char *fontname_12="fixed"; // only this will work
font_map = XLoadQueryFont(dpy, fontname_12);
output of xlsfonts:
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--13-100-100-100-c-60-iso8859-1
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
6x13
cursor
fixed
font packages detected with dpkg -l | grep font:
console-setup
fontconfig
fontconfig-config
fontconfig-infinality
fonts-dejavu
fonts-dejavu-core
fonts-dejavu-extra
fonts-droid-fallback
fonts-freefont-ttf
fonts-liberation2
fonts-noto-mono
fonts-piboto