From nobody Wed Jun 25 17:55:34 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 4bS8cY65gvz60KmG for ; Wed, 25 Jun 2025 17:55:41 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from ns.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (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 ECDSA (prime256v1) client-digest SHA256) (Client CN "discoveriesinwood.com", Issuer "E5" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bS8cW3hQ4z3sBb for ; Wed, 25 Jun 2025 17:55:39 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org; dmarc=none Received: from [192.168.151.122] (breakaway.dreamchaser.org [192.168.151.122]) by ns.dreamchaser.org (8.18.1/8.18.1) with ESMTP id 55PHtYcL014584; Wed, 25 Jun 2025 11:55:35 -0600 (MDT) (envelope-from freebsd@dreamchaser.org) Message-ID: Date: Wed, 25 Jun 2025 09:55:34 -0800 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 User-Agent: Mozilla Thunderbird From: Gary Aitken Subject: Re: xcalc missing fonts Reply-To: freebsd@dreamchaser.org To: Ralf Mardorf , questions@freebsd.org References: <425a86a7-cda0-46a1-882b-b06fe29a4b11@dreamchaser.org> <87c7b666-297b-415a-b019-a284d09ebb86@dreamchaser.org> Content-Language: en-US In-Reply-To: <87c7b666-297b-415a-b019-a284d09ebb86@dreamchaser.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: inspected by milter-greylist-4.6.4 (ns.dreamchaser.org [192.168.151.101]); Wed, 25 Jun 2025 11:55:35 -0600 (MDT) for IP:'192.168.151.122' DOMAIN:'breakaway.dreamchaser.org' HELO:'[192.168.151.122]' FROM:'freebsd@dreamchaser.org' RCPT:'' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.4 (ns.dreamchaser.org [192.168.151.101]); Wed, 25 Jun 2025 11:55:35 -0600 (MDT) X-Spamd-Result: default: False [1.21 / 15.00]; NEURAL_SPAM_MEDIUM(1.00)[0.999]; NEURAL_SPAM_LONG(0.98)[0.984]; NEURAL_HAM_SHORT(-0.67)[-0.674]; R_SPF_ALLOW(-0.20)[+mx]; ONCE_RECEIVED(0.20)[]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; TO_DN_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; R_DKIM_NA(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[dreamchaser.org]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; REPLYTO_DOM_NEQ_TO_DOM(0.00)[] X-Rspamd-Queue-Id: 4bS8cW3hQ4z3sBb X-Spamd-Bar: + 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. The server log shows: (WW) `fonts.dir' not found (or not valid) in "/usr/local/share/fonts/misc/". Entry deleted from font path. (Run 'mkfontdir' on "/usr/local/share/fonts/misc/"). Running mkfontdir in each of the subdirs in /usr/local/share/fonts solves the problem: # bash # cd /usr/local/share/fonts # for dir in * ; do cd $dir ; mkfontdir ; cd .. ; done $ xset fp rehash $ xcalc 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. Questions I have remaining: 1, Does anyone else see this same problem with xcalc not displaying the divide and square-root buttons correctly? i.e. missing fonts.dir files in some of /usr/local/share/fonts/* directories? 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. Thanks, Gary