HOWTO print list of fonts?

Asked by JohnL

My daughters school is requiring her to use a ms font (office 2007) called APA or Turabian. I want to be able to print a list of the fonts installed in OpenOffice to ask her teacher to select an open source alternative. How do i get the list printed for her to take to school?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu openoffice.org Edit question
Assignee:
No assignee Edit question
Solved by:
Arnaud Soyez
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

May be here is a good starting point http://wiki.services.openoffice.org/wiki/Font-FAQ

Then to get best base Windows fonts compatibility

Please install msttcorefonts

Using System->Administration->Software sources [Ubuntu software] please enable all the repositories.

Then open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo aptitude update
sudo aptitude install cabextract
sudo aptitude install msttcorefonts

give your user password when requested, you don't see nothing when you type it, then press enter.

Always useful is the online Ubuntu doc https://help.ubuntu.com/8.04/
Hope this helps

Revision history for this message
JohnL (jwillar) said :
#2

The wiki did not help. I installed the "Microsoft Core Fonts" from the KUBUNTU repositories. And also installed "cbextract" and msttcorefonts" like you suggested. End results? Well I definitely have more font, but not the two the teacher wants. I still need a way to print out a list of all fonts in OpenOffice, each in their native font. I can do this in ms-Word but see no parallel process in oo-Word. Thanks for the assist but I'm still looking for a solution.

JohnL

Revision history for this message
Jensen Somers (jsomers) said :
#3

I am not a 100% sure but I think OpenOffice simply uses the fonts which are available on the system. You can create a list of those available fonts using the command 'fc-list'. Unfortunately this doesn't provide you with a view of how the fonts actually look.

Revision history for this message
Best Arnaud Soyez (weboide) said :
#4

Here's what you can do:

Open a terminal, and copy and paste this, this is just one line :

(echo '<html><body>' && (fc-list | sed 's/\(.*\):.*/<font face="\1">\1<\/font><br>/') && echo '</body></html>') > fonts.html

and then go to your user's directory and open fonts.html into Firefox.

This should give you the fonts style with their name.

Revision history for this message
Arnaud Soyez (weboide) said :
#5

I've made a tutorial, and I've posted it on my website, so you can see better:

http://www.codealpha.net/tutorials/linux/58-print-installed-font-list-with-preview-for-each-font

Revision history for this message
Tony Pursell (ajpursell) said :
#6

Just a little better if you pop a sort in

(echo '<html><body>' && (fc-list | sort | sed 's/\(.*\):.*/<font face="\1">\1<\/font><br>/') && echo '</body></html>') > fonts.html

Revision history for this message
JohnL (jwillar) said :
#7

Worked! Thanks for your time/effort. I'll save this for later reuse. JohnL

Revision history for this message
shoh7EuR (godfried-borremans) said :
#8

updated version

echo "<meta charset=\"utf-8\">" > fonts.html; fc-list | cut -d \: -f 1,2 | sort -t \: -k 2,2 | sed 's/\([^:]*\): \(.*\)/<div style="font-family: \2\;">\1 - \2<\/div><br>/' >> fonts.html