The Navigatrix has been updated. The new website can be found at navigatrix.net.




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Change the default font in abiword ?

Joined: 27 Jun 2015, 08:44
Posts: 6
I have edited the normal.awt, normal.awt-fr, and normal.awt-fr_FR, all located in /usr/shre/abiword-3.0/templates (with $ gksudo abiword), they are now OK, when I ask abiword a new document and select the "normal.awt" (without trailer) template, it works as expected (my font arial by default).

BUT, when I open abiword, or create a new document with it (w/o selecting a template), it opens a new file with the Time New Roman font ! :twisted:

The locate function cannot find any *.awt template but those in /usr/shre/abiword-3.0/templates.

Any help welcome, or is abiword only deserving the trash bin ?


Top
   
 
 Post subject: Re: Change the default font in abiword ?

Joined: 04 Nov 2010, 20:51
Posts: 1062
Abiword uses xml files for all of its configuration setting.

You can see them in (#1), /usr/share/abiword-3.0/templates. They all have the .awt extension.

The "normal" templates (#2)) control the aspects of run of the mill paragraph text. Headings, footers, etc. may have their own template files, or the defining characteristics of each, in this ultra-configurable application, might have a template of their own

header1.awt
header2.awt
header3.awt
footer.awt
blocktext.awt
plaintext.awt
etc....

I don't know. You can find out.

A cheap and easy way to change the default font is to change the xml file. (#3)
Code:
gksudo medit /usr/share/abiword-3.0/templates/normal.awt
The gksudo is to grant root permission so the file can be edited by mere mortals.

If you know the exact name of the font family, you delete Times New Roman (#4) and replace it with Arial, or Comic Sans, or whatever is the name.

There is no error correction so if you don't hit it exactly the application might suffer a brain aneurysm...I don't know. You can find out.

Further down the line (#5) is the font size. This is more straight forward. Replace the numeral with the one of your choosing.

Save, exit, and test.

The more complicate method is
Code:
sudo chown moe:moe /usr/share/abiword-3.0/templates/normal.awt
Obviously changing moe to your username (nx if not a harddrive installation)

2. Create a new document.
3. Choose from a font list what font you wish to have as the default font.
4. Save this blank document as an .awt file in “Templates” directory /usr/share/abiword-3.0/templates

and 5.
Code:
sudo chown root:root /usr/share/abiword-3.0/templates/normal.awt

to put it back to the proper ownership.
Attachment:
abinormal.png
abinormal.png [ 144.83 KiB | Viewed 15092 times ]


The locate doesn't find anything because, out of the box, the database has not been created.
Code:
sudo updatedb
This creates/updates the database, and then locate away to your heart's content.

Good luck


Top
   
 
 Post subject: Re: Change the default font in abiword ?
Site Admin

Joined: 20 Mar 2012, 13:32
Posts: 116
Put the normal.awt template in ~/.config/abiword/templates ("~" being your home directory).

I found AbiWord ok for small docs but not for bigger ones (say beyond 5 pages) where I occasionally ran into issues with corrupted files (may have improved with newer versions, I haven't used it in a while). The good thing is that you can at least recover the text as it saves to an uncompressed XML format. Where I did find AbiWord useful is for converting documents from the command line as it reads and writes formats which other utilities (e.g. pandoc) don't.


Top
   
 
 Post subject: Re: Change the default font in abiword ?

Joined: 04 Nov 2010, 20:51
Posts: 1062
Markus's suggestion for location might be better....

It is certainly less drama.


Top
   
 
 Post subject: Re: Change the default font in abiword ?
Site Admin

Joined: 20 Mar 2012, 13:32
Posts: 116
Sorry posts overlapped and I hadn't seen Moe's reply before posting mine...

Attachment:
abinormal2.png
abinormal2.png [ 2.38 KiB | Viewed 15079 times ]

abinormal.png... somehow reminds of "Young Frankenstein"... ;-)

Something else Abiword is good at: in contrast to all other word processors I've used, it exports relatively clean HTML (without a lot of proprietary cruft) - in case you ever need that...


Top
   
 
 Post subject: Re: Change the default font in abiword ?

Joined: 04 Nov 2010, 20:51
Posts: 1062
Markus wrote:
abinormal.png... somehow reminds of "Young Frankenstein"...
Great minds run the same path...or is that Abby Normal minds?


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


Search for:
cron

Credits © 2010 - 2024