Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HELP - fontconfig problems
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2220
Location: Kentucky

PostPosted: Fri Dec 25, 2020 9:12 pm    Post subject: HELP - fontconfig problems Reply with quote

I just installed:
Code:

Linux gentoo 5.4.80-gentoo-r1-x86_64 #1 SMP Thu Dec 24 02:27:58 -00 2020 x86_64 Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz GenuineIntel GNU/Linux


on a virtualBox running under windows-10.

I am having trouble with fonts not being found. Since this is something one usually only does once at system installation/setup time, I forget how to fix it.

Here are the symptoms:
Code:

gentoo ~ # ctwm
ctwm:  unable to open fonts "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" or "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-*"
gentoo ~ #


I seem to remember that getting the fonts to work properly is always a nightmare. Cam somebody help me with this?
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1421
Location: Montréal

PostPosted: Fri Dec 25, 2020 9:49 pm    Post subject: Reply with quote

You can use Xfontsel to choose your font and pass the result to ctwm if there is an option to personnalise the fonts at command line or in a file configuration. Maybe you just need to install the missing fonts for ctwm work properly.
Code:
xfontsel -print

Will display your choose font on the terminal after close it.
_________________
Paul
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2220
Location: Kentucky

PostPosted: Fri Dec 25, 2020 11:35 pm    Post subject: Reply with quote

Yes, I would like to install the missing fonts, but how does one do that, given a goofy font specifier instead of a package name?
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1421
Location: Montréal

PostPosted: Fri Dec 25, 2020 11:45 pm    Post subject: Reply with quote

You must look for adobe helvetica and misc fonts in the Portage tree. Xorg have his own fonts and misc fonts are part of them.
_________________
Paul
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2220
Location: Kentucky

PostPosted: Sat Dec 26, 2020 12:02 am    Post subject: Reply with quote

So concerning the adobe:
Code:

gentoo ~ # emerge -s adobe
 
[ Results for search key : adobe ]
Searching...

*  dev-php/adodb
      Latest version available: 5.20.14
      Latest version installed: [ Not Installed ]
      Size of files: 455 KiB
      Homepage:      https://github.com/ADOdb
      Description:   Database abstraction layer for PHP
      License:       BSD LGPL-2.1+

*  media-fonts/font-adobe-100dpi
      Latest version available: 1.0.3-r2
      Latest version installed: [ Not Installed ]
      Size of files: 1088 KiB
      Homepage:      https://www.x.org/wiki/ https://gitlab.freedesktop.org/xorg/font/font-adobe-100dpi
      Description:   X.Org Adobe bitmap fonts
      License:       MIT

*  media-fonts/font-adobe-75dpi
      Latest version available: 1.0.3-r2
      Latest version installed: 1.0.3-r2
      Size of files: 869 KiB
      Homepage:      https://www.x.org/wiki/ https://gitlab.freedesktop.org/xorg/font/font-adobe-75dpi
      Description:   X.Org Adobe bitmap fonts
      License:       MIT

*  media-fonts/font-adobe-utopia-100dpi
      Latest version available: 1.0.4-r2
      Latest version installed: [ Not Installed ]
      Size of files: 346 KiB
      Homepage:      https://www.x.org/wiki/ https://gitlab.freedesktop.org/xorg/font/font-adobe-utopia-100dpi
      Description:   X.Org Adobe Utopia bitmap fonts
      License:       MIT

*  media-fonts/font-adobe-utopia-75dpi
      Latest version available: 1.0.4-r2
      Latest version installed: [ Not Installed ]
      Size of files: 268 KiB
      Homepage:      https://www.x.org/wiki/ https://gitlab.freedesktop.org/xorg/font/font-adobe-utopia-75dpi
      Description:   X.Org Adobe Utopia bitmap fonts
      License:       MIT

*  media-fonts/font-adobe-utopia-type1
      Latest version available: 1.0.4-r2
      Latest version installed: [ Not Installed ]
      Size of files: 263 KiB
      Homepage:      https://www.x.org/wiki/ https://gitlab.freedesktop.org/xorg/font/font-adobe-utopia-type1
      Description:   X.Org Adobe Utopia Type 1 fonts
      License:       MIT

*  www-plugins/adobe-flash [ Masked ]
      Latest version available: 32.0.0.453
      Latest version installed: [ Not Installed ]
      Size of files: 18389 KiB
      Homepage:      https://www.adobe.com/products/flashplayer.html https://get.adobe.com/flashplayer/ https://helpx.adobe.com/security/products/flash-player.html
      Description:   Adobe Flash Player
      License:       AdobeFlash-11.x

[ Applications found : 7 ]

gentoo ~ #

So how do I find the "-adobe-helvetica-bold-r-normal..." fonts? It is a convoluted mess. The program tells me the font it wants, but emerge -s only tells me the package name. How do I go from font name to package name?

BTW I use ctwm on other machines for many years without this problem. It "just works".
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1421
Location: Montréal

PostPosted: Sat Dec 26, 2020 8:59 pm    Post subject: Reply with quote

Maybe adobe helvetica fonts are part of a package of Microsoft fonts, emerge those Microsoft fonts if possible. For more liberty you should be able to impose the fonts that ctwm use according to the installed fonts, look this way too.
_________________
Paul
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2220
Location: Kentucky

PostPosted: Wed Jan 06, 2021 11:27 pm    Post subject: Reply with quote

I'm getting somewhat desperate to get this solved. My fonts in the VM are all messed up after to much "try this and see if it will work" style exploratory hacking. I have other "real" machines that work great. Isn't there some way to just copy all the font stuff from one of them to the VM and get things working the same way?

Thanks in advance, and I realize that the holiday season is not the time people like to spend answering help requests. I also realize some of you (the more senior ones) are likely battling the SolarWinds" problem, which is obviously more important.

:mrgreen:
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
cruzki123
Apprentice
Apprentice


Joined: 16 May 2008
Posts: 257

PostPosted: Thu Jan 07, 2021 1:14 am    Post subject: Reply with quote

I think this entry of the forum has a relevant answer to your question.

https://forums.gentoo.org/viewtopic-t-1013962-start-0.html

See also

https://unix.stackexchange.com/questions/504127/gentoo-is-missing-x-bitmapped-fonts-helvetica-times-georgia

Also this

https://forums.gentoo.org/viewtopic-t-557077-start-0.html

Good luck.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2220
Location: Kentucky

PostPosted: Thu Jan 07, 2021 2:50 am    Post subject: Reply with quote

That last link you provided points out that the tightvnv server ignores the X11 font configuration and has font paths hard coded into the shell script that is used to start the vncserver.

In my case, I am running a virtual machine -- Oracle's VirtualBox -- on a windoze-10 host, with gentoo as a guest. I recall that vmware's way of implementing the screen for a virtual machine also uses vnc, although it is not explicitly made visible to the average user.

Maybe virtualbox does something similar? :idea:
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2220
Location: Kentucky

PostPosted: Mon Jan 11, 2021 7:21 pm    Post subject: Reply with quote

The frustration is extreme! :!: :evil:

I run twm, and it works fine. But I like ctwm. It works fine on all my other systems, but this brand new gentoo system will not run it. The problem is it can't find a needed font. It finds it on several other machines just fine.

Here's what happens:
Code:

rj@gentoo ~ $ ctwm
ctwm:  line 113:  deprecated SqueezeTitle faction 0/0, assuming 2/2
ctwm:  line 116:  deprecated SqueezeTitle faction 0/0, assuming 1/2
Failed to get fontset -adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*,*
ctwm:  unable to open fonts "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*" or "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-*"
rj@gentoo ~ $


The whole X font system is an incredibly byzantine convoluted over complicated mess!

How do I fix this?

HELP! MAYDAY! SOS!
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum