From nobody Wed Jun 25 18:15:11 2025 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bS93L6SKZz60LRM for ; Wed, 25 Jun 2025 18:15:26 +0000 (UTC) (envelope-from sr@genyosha.net) Received: from ns1.genyosha.net (ns1.genyosha.net [50.39.243.221]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "float.home.genyosha.net", Issuer "float.home.genyosha.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bS93L28mnz45Sd for ; Wed, 25 Jun 2025 18:15:26 +0000 (UTC) (envelope-from sr@genyosha.net) Authentication-Results: mx1.freebsd.org; none Received: from dragon.home.genyosha.net (ops0.genyosha.net [50.39.243.219]) by ns1.genyosha.net (8.18.1/8.18.1) with ESMTPS id 55PIFHAU020198 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 25 Jun 2025 11:15:17 -0700 (PDT) (envelope-from sr@genyosha.net) Received: from dragon.home.genyosha.net (localhost [127.0.0.1]) by dragon.home.genyosha.net (8.14.7/8.14.7) with ESMTP id 55PIFCNX017266; Wed, 25 Jun 2025 11:15:12 -0700 Received: (from sr@localhost) by dragon.home.genyosha.net (8.14.7/8.14.7/Submit) id 55PIFBvN017265; Wed, 25 Jun 2025 11:15:11 -0700 Date: Wed, 25 Jun 2025 11:15:11 -0700 From: Steve Rikli To: Gary Aitken Cc: questions@freebsd.org Subject: Re: xcalc missing fonts Message-ID: References: <425a86a7-cda0-46a1-882b-b06fe29a4b11@dreamchaser.org> <87c7b666-297b-415a-b019-a284d09ebb86@dreamchaser.org> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Greylist: inspected by milter-greylist-4.6.4 (ns1.genyosha.net [50.39.243.221]); Wed, 25 Jun 2025 11:15:17 -0700 (PDT) for IP:'50.39.243.219' DOMAIN:'ops0.genyosha.net' HELO:'dragon.home.genyosha.net' FROM:'sr@genyosha.net' RCPT:'' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.4 (ns1.genyosha.net [50.39.243.221]); Wed, 25 Jun 2025 11:15:17 -0700 (PDT) X-Rspamd-Queue-Id: 4bS93L28mnz45Sd X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:20055, ipnet:50.39.128.0/17, country:US] On Wed, Jun 25, 2025 at 09:55:34AM -0800, Gary Aitken wrote: > On 6/24/25 20:25, Gary Aitken wrote: > > On 6/24/25 16:13, Ralf Mardorf wrote: > > > On Tue, 2025-06-24 at 13:44 -0800, Gary Aitken wrote: > > > > It's my understanding all that's needed is xorg-fonts-100dpi or -75dpi > > > > and way back when I'm pretty sure that was the case. > > > > > > > > Hints? > > > > > > Probably the same issue as I experienced on Arch Linux. > > > > > > I installed xorg-fonts-100dpi and -75dpi. After that I needed to run > > > > > > $ xset fp+ /path_to_fonts_100dpi/,/path_to_fonts_75dpi/ > > > $ xset fp rehash > > This doesn't change the behavior; still no divide symbol or square-root on the > xcalc buttons: > > $ xset q | grep font > catalogue:/usr/local/etc/X11/fontpath.d,built-ins,/usr/local/share/fonts/100dpi/,/usr/local/share/fonts/freefont-ttf/,/usr/local/share/fonts/75dpi/,/usr/local/share/fonts/misc/ > $ xset fp rehash > $ xcalc > Warning: Cannot convert string "8x13" to type FontStruct > Warning: Missing charsets in String to FontSet conversion > Warning: Cannot convert string "-adobe-symbol-*-*-*-*-*-120-*-*-*-*-*-*" to type FontStruct > > > Where is the actual font data? > > From the handbook, /usr/local/share/fonts/ > > Looking at the individual font directories, there is no fonts.dir in some of them. Fwiw, my 14.3 system has these: $ pwd /usr/local/share/fonts $ l 100dpi/ OTF/ cyrillic/ encodings/ noto/ 75dpi/ TTF/ dejavu/ misc/ $ find . -name fonts.dir ./misc/fonts.dir ./dejavu/fonts.dir ./noto/fonts.dir ./TTF/fonts.dir ./OTF/fonts.dir ./100dpi/fonts.dir I've not manually created or otherwise manipulated anything therein. I expect some of those were created today when I installed xcalc (see below). > However, doing an "xset fp default" restores the original behavior, > so I still have to set the font path explicitly despite the fonts.dir files > now being present. > Restarting the server solves the problem. My 'xset q' shows a Font Path: /usr/share/fonts/X11/misc,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,built-ins > 1, Does anyone else see this same problem with xcalc not displaying > the divide and square-root buttons correctly? My xcalc divide and sqrt symbols look OK. For reference: $ xcalc --version xcalc 1.1.2 Fwiw this is from a pkg install I just did today; the pre-reqs it came with: New packages to be INSTALLED: font-adobe-100dpi: 1.0.3_4 [FreeBSD] font-alias: 1.0.4 [FreeBSD] font-misc-misc: 1.1.2_4 [FreeBSD] xcalc: 1.1.2_1 [FreeBSD] > 2. Of all the ports in x11-fonts, only cyr-rfx and uw-ttyp0 have a pkg-plist > which contains an active reference to fonts.dir. In all the others, there is > either no pkg-plist at all, or the fonts.dir line is commented out: > $ grep fonts. freefonts/pkg-plist > @comment %%FONTSDIR%%/fonts.dir > @comment %%FONTSDIR%%/fonts.scale > Are the fonts.dir files supposed to be auto-generated after pkg install? > > 3. Can anyone point me to a description of exactly what is supposed to be in > /usr/local/etc/X11/fonts.d/ ? My searches are coming up useless. Not a reference or documentation per se, but this 14.3-STABLE system has no /usr/local/etc/X11/fonts.d/ subdir at all. I don't know if any of this is helpful to you or not. Cheers, sr.