From b515d91d4b276986293cc5c76dd0fa9082b66c66 Mon Sep 17 00:00:00 2001 From: Andrew Benton Date: Wed, 14 Dec 2005 14:33:56 +0000 Subject: [PATCH] Tweaked the Abiword font configuration git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@5424 af4574ff-66df-0310-9fd7-8a98e5e911e0 --- xsoft/office/abiword.xml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/xsoft/office/abiword.xml b/xsoft/office/abiword.xml index fdc04e3bde..35f70ba0ba 100644 --- a/xsoft/office/abiword.xml +++ b/xsoft/office/abiword.xml @@ -196,16 +196,19 @@ cp -v /usr/share/AbiSuite-2.4/templates/normal.awt-[lang]AbiWord uses Times New Roman as its default font. If you'd like it to default to a different font, edit - ~/.AbiSuite/templates/normal.awt and change the font to - the one you want. Open AbiWord, choose the font, - type one letter then save the document in your home folder as - test.abw. Find out what name - AbiWord uses for the font: + ~/.AbiSuite/templates/normal.awt and change the font to the + one you want. To find out the exact string AbiWord + uses for the font, open AbiWord, type one letter, then + save the document in your home folder as test.abw. Now: + -grep -m 1 '"font-family' ~/test.abw +grep -m 1 '"font-family' ~/test.abw | cut -d \" -f6 - Now put it into your AbiWord template. For - example, if you want to use Bitstream Vera Sans: + You can edit ~/.AbiSuite/templates/normal.awt with a + simple text editor like Vim or + Gedit, or you can alter it with a + sed. For example, if you want to use Bitstream Vera Sans: + sed -i 's@Times New Roman@Bitstream Vera Sans@g' \ ~/.AbiSuite/templates/normal.awt