| View previous topic :: View next topic |
| Author |
Message |
dufeu l33t


Joined: 30 Aug 2002 Posts: 675 Location: US-FL-EST
|
Posted: Mon Mar 22, 2010 2:08 am Post subject: How to find which fonts are installed/available? [SOLVED] |
|
|
Yes, I know the question sounds kind of pointless. But it's not. Really.
I wanted to list all of the available font packages and know which ones I already have installed.
I can get a partial listing containing the type of information I want by doing something like:
There results look something like: | Code: | * media-fonts/texcm-ttf
Latest version available: 1.0
Latest version installed: 1.0
Size of files: 73 kB
Homepage: http://www.mozilla.org/projects/mathml/fonts/
Description: TeX's Computer Modern Fonts for MathML
License: bakoma
* media-fonts/ttf-bitstream-vera
Latest version available: 1.10-r3
Latest version installed: 1.10-r3
Size of files: 258 kB
Homepage: http://www.gnome.org/fonts/
Description: Bitstream Vera font family
License: BitstreamVera
* media-fonts/vdrsymbols-ttf
Latest version available: 20080905
Latest version installed: [ Not Installed ]
Size of files: 625 kB
Homepage: http://andreas.vdr-developer.org/fonts/
Description: Font that contains symbols needed for VDR
License: BitstreamVera |
I get the package name, short description, latest available and installed versions and homepage which is exactly the kind of info I want to see together in one place.
If I look at the media-fonts category in the on-line database, that lists all the available fonts but doesn't tell me what I already have installed. If I use a font display program or simply open OOo writer and check the fonts there, that tells me what's installed but not what's available in portage.
What I really wanted to do was: | Code: | | # emerge -s media-fonts | and list all the font packages under /usr/portage/media-fonts in the above format. But neither the '-s' or '-S' options include the package category as part of what is compared during searches.
Is there any simple way of doing this? _________________ People whom think M$ is mediocre, don't know the half of it.
Last edited by dufeu on Mon Mar 22, 2010 11:28 am; edited 1 time in total |
|
| Back to top |
|
 |
Etal Veteran


Joined: 15 Jul 2005 Posts: 1580
|
Posted: Mon Mar 22, 2010 2:21 am Post subject: |
|
|
| |
|
| Back to top |
|
 |
wthrowe Tux's lil' helper

Joined: 19 Aug 2009 Posts: 130
|
Posted: Mon Mar 22, 2010 2:21 am Post subject: |
|
|
If you prefix your search string with an @ then emerge will include the category:
| Code: | | emerge -s @media-fonts |
|
|
| Back to top |
|
 |
PaulBredbury Watchman


Joined: 14 Jul 2005 Posts: 6609
|
Posted: Mon Mar 22, 2010 8:03 am Post subject: |
|
|
Kinda related: to see the fonts available:
fc-match -a | uniq | sort | less |
|
| Back to top |
|
 |
dufeu l33t


Joined: 30 Aug 2002 Posts: 675 Location: US-FL-EST
|
Posted: Mon Mar 22, 2010 11:54 am Post subject: |
|
|
Both: | Code: | | # emerge -s @media-fonts |
and | Code: | | # eix media-fonts/* |
are perfect for what I wanted to know.
Even better, I can now do things like {on laptop}: | Code: | | # eix media-fonts/* > fonts-laptop.text |
{on desktop}: | Code: | # eix media-fonts/* > fonts-desktop.text
# scp root@192.168.1.5:/root/fonts-laptop.text .
# diff -u fonts-desktop.text fonts-laptop.text |
So now, not only can I see what fonts are installed/not installed on a given machine, but I can also find out which fonts are discrepant between machines! This example uses the "emerge" method: | Code: | * media-fonts/terminus-font
Latest version available: 4.30
- Latest version installed: 4.30
+ Latest version installed: [ Not Installed ]
Size of files: 281 kB
Homepage: http://www.is-vn.bg/hamster/
Description: A clean fixed font for the console and X11
@@ -1004,7 +1004,7 @@
* media-fonts/texcm-ttf
Latest version available: 1.0
- Latest version installed: 1.0
+ Latest version installed: [ Not Installed ]
Size of files: 73 kB
Homepage: http://www.mozilla.org/projects/mathml/fonts/
Description: TeX's Computer Modern Fonts for MathML
@@ -1028,7 +1028,7 @@
* media-fonts/ttf-bitstream-vera
Latest version available: 1.10-r3
- Latest version installed: 1.10-r3
+ Latest version installed: [ Not Installed ]
Size of files: 258 kB
Homepage: http://www.gnome.org/fonts/
Description: Bitstream Vera font family
@@ -1068,7 +1068,7 @@ |
I love it! Thanks to both wthrowe and AM088 for the good answers.
The "fc-match -a | uniq | sort | less" method is interesting. While it doesn't really suit my immediate need, I find the informational value interesting to say the least. It's certainly a different view on fonts than I'm used to seeing. Thank you, Paul. _________________ People whom think M$ is mediocre, don't know the half of it. |
|
| Back to top |
|
 |
|
|
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
|
|