Re: [gentoo-user] Something is blocking an addition of fonts

2017-03-11 Thread Corbin Bird
On 03/10/2017 07:24 PM, Harry Putnam wrote:
> Setup: VBox vm running gentoo(amd64) guest on a win-10 (64bit) host
>  Hardware: HP xw8600 - 2x Xeon  CPU X5450 @ 3.00GHz - 32 GB ram
> 
> I've added some fonts from outside portage this way:
> 
>  (Sorry that what follows is a bit of a confusing mess)
> 
> mkdir /usr/share/fonts/terminus
> loaded the fonts into termininus
> 
> Ran:
>mkfontdir /usr/share/fonts/terminus
> Ran:
>  xset fp rehash
> 
> Which is supposed to tell the X fonts tools about the new
> set of fonts with out having to restart X.
> 
> I thought a bit and wondered if I might should have added the new
> directory to the font path.. I don't really think so since the default
> path covers the new one but stillso:
> 
> Ran:
>   xset +fp  /usr/share/fonts/terminus
> 
> That is supposed to prepend that path to the existing path.
> 
> Checked with:
> 
>   xset q
> 
> And I see the new directory
> 
>   Font Path:
> /usr/share/fonts/terminus_hp3-170310/,/usr/share/fonts/misc/,built-ins
> 
> 
> The new fonts show up with `fc-list'
> 
> OK, all seems to be working... 
> 
> Until I actually try to use them.
> 
> xterm -fa ter-u14b_iso-8859-1.pcf
> (output wrapped for mail)
> 
> Warning: Cannot convert string
> "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-*" to type
> FontStruct
> 
> Warning: Missing charsets in String to FontSet conversion
> 
> It appears the xterm is trying to load a font from somewhere else even
> though I asked for  `ter-u14b_iso-8859-1.pcf'
> 
> I'm not at all sure where the -adobe-helvetica if being called.
> 
>   sudo grep -r 'adobe-helvetica'  /usr/share/fonts
>
> 
> However there are piles of fonts with `adobe' in the name:
> 
>   sudo grep -r adobe /usr/share/fonts|wc-l
> 173
> 
> They appear to be mostly like this:
> 
>/usr/share/fonts/corefonts/fonts.scale:verdanaz.ttf
>-microsoft-verdana-bold-i-normal--0-0-0-0-p-0-adobe-standard
> 
> Thought it might be from .Xresoures but there are no fonts there with
> adobe in the name
> 
>`grep adobe .Xresources' 
> 
> Anybody here recognize what the problem might be?
> 
> There are a few helvetica in the .. only one is english:
> 
>/usr/share/fonts/misc/fonts.alias:variable \
>  -*-helvetica-bold-r-normal-*-*-120-*-*-*-*-iso8859-1
> 
> And two japanese helveticas
> 
> So I can't even tell where that adobe font is coming from
>   
> 
> 

The "terminus" font is in the Gentoo repo.

Try emerging "media-fonts/terminus-font" && activating with "eselect
fontconfig".

USE flags for the font you might be interested in :

center-tilde
-->Place the '~' character vertically centered on the line instead of to
the top.

pcf
-->Install Portable Compiled Font (PCF) (required for X11)

pcf-unicode-only
-->Remove non-unicode PCF fonts that could be problematic. See bug #520222.

psf
-->Install PC Screen Font (PSF) with unicode data (for linux console)

Corbin




[gentoo-user] Something is blocking an addition of fonts

2017-03-10 Thread Harry Putnam
Setup: VBox vm running gentoo(amd64) guest on a win-10 (64bit) host
 Hardware: HP xw8600 - 2x Xeon  CPU X5450 @ 3.00GHz - 32 GB ram

I've added some fonts from outside portage this way:

 (Sorry that what follows is a bit of a confusing mess)

mkdir /usr/share/fonts/terminus
loaded the fonts into termininus

Ran:
   mkfontdir /usr/share/fonts/terminus
Ran:
 xset fp rehash

Which is supposed to tell the X fonts tools about the new
set of fonts with out having to restart X.

I thought a bit and wondered if I might should have added the new
directory to the font path.. I don't really think so since the default
path covers the new one but stillso:

Ran:
  xset +fp  /usr/share/fonts/terminus

That is supposed to prepend that path to the existing path.

Checked with:

  xset q

And I see the new directory

  Font Path:
/usr/share/fonts/terminus_hp3-170310/,/usr/share/fonts/misc/,built-ins


The new fonts show up with `fc-list'

OK, all seems to be working... 

Until I actually try to use them.

xterm -fa ter-u14b_iso-8859-1.pcf
(output wrapped for mail)

Warning: Cannot convert string
"-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-*" to type
FontStruct

Warning: Missing charsets in String to FontSet conversion

It appears the xterm is trying to load a font from somewhere else even
though I asked for  `ter-u14b_iso-8859-1.pcf'

I'm not at all sure where the -adobe-helvetica if being called.

  sudo grep -r 'adobe-helvetica'  /usr/share/fonts
   

However there are piles of fonts with `adobe' in the name:

  sudo grep -r adobe /usr/share/fonts|wc-l
173

They appear to be mostly like this:

   /usr/share/fonts/corefonts/fonts.scale:verdanaz.ttf
   -microsoft-verdana-bold-i-normal--0-0-0-0-p-0-adobe-standard

Thought it might be from .Xresoures but there are no fonts there with
adobe in the name

   `grep adobe .Xresources' 

Anybody here recognize what the problem might be?

There are a few helvetica in the .. only one is english:

   /usr/share/fonts/misc/fonts.alias:variable \
 -*-helvetica-bold-r-normal-*-*-120-*-*-*-*-iso8859-1

And two japanese helveticas

So I can't even tell where that adobe font is coming from