I would read the fonts(7) man page first. Specifically the 'Installing 
fonts in Xft' section.

-- 
  Patrick Harper
  paia...@fastmail.com

On Tue, 30 Nov 2021, at 23:38, Carson Chittom wrote:
> I have purchased some fonts that I like, and I want to use them
> throughout my OpenBSD 7.0 system.  I have both TTF and OTF versions of
> the fonts.
>
> I created a new port in /usr/ports/mystuff/myfonts and copied over the
> Makefile from fonts/ibm-plex to use as a model, edited it *only*
> (AFAICR) to adjust for font names and paths, did the minimum possible to
> actually create a package, and installed it.  That worked fine.
>
> I may have run mkfontscale and mkfontdir manually in each font's
> directory as well; I don't remember. In any case, the fonts are
> available to GTK and Qt.
>
> As part of ~/.xsession, I also have:
>
> if [ -d /usr/local/share/fonts ]; then
>   for i in /usr/local/share/fonts/*; do
>     xset fp+ $i
>   done
>   xset fp rehash
> fi
>
> But the fonts still do not show up in xfontsel (unlike, for example, if
> I install fonts/ibm-plex), and I don't seem to be able to use them in
> Fvwm either, even if I copy a font description directly from
> /usr/local/share/fonts/myfonts/fonts.dir
>
> So, I'm guessing either my fonts are missing something, or I'm missing
> something.  I've tried to search and mostly just turned up Arch Linux
> wiki pages telling me to do the things I'd already done with
> mkfontscale, mkfontdir, and xset.  Can anyone point me in the right
> direction?

Reply via email to