[Solved] How to find font used when file was created

Discuss the drawing application

[Solved] How to find font used when file was created

Postby TopSpot123 » Wed Dec 27, 2017 2:37 am

Long story short, I have some Open Office draw files that I created on my previous PC. When I open them on my current PC, the text is using the incorrect font. I assume that I don't have the proper font installed. I have seen this before in other programs, but it will typically give an error message and list the missing font by name, i.e. Font xxxx on line 6 missing, default font substituted. Is there any way to find out the proper font that was used when these files were created?
Last edited by TopSpot123 on Fri Dec 29, 2017 1:15 am, edited 1 time in total.
Open Office 4 on Windows 10
TopSpot123
 
Posts: 2
Joined: Wed Dec 27, 2017 2:30 am

Re: How to find font used when file was created.

Postby Zizi64 » Wed Dec 27, 2017 10:47 am

When I open them on my current PC, the text is using the incorrect font. I assume that I don't have the proper font installed.


There is an extension than can list the used fonts, and the installed fonts. But it works in the Writer application only. The name of the extension is TestFonts:
https://extensions.openoffice.org/en/pr ... s#releases


You can check the installed fonts with a simple file browser in the Fonts directory of the Windows.
Tibor Kovacs, Hungary; LO4.4.7, LO6.1.1 on Win7x64Prof.
PortableApps, winPenPack: LO3.3.0-LO6.1.2 and AOO4.1.5
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
User avatar
Zizi64
Volunteer
 
Posts: 7303
Joined: Wed May 26, 2010 7:55 am
Location: Budapest, Hungary

Re: How to find font used when file was created.

Postby UnklDonald418 » Wed Dec 27, 2017 8:51 pm

There is a brute force method.
If your zip program will open the .odg file directly fine, otherwise make a copy and rename it with a .zip extension.
Open the archive and in the main directory there should be a file named content.xml.
Double click on that and it will probably open in your internet browser. Look for any lines containing fo:font-family= to see the names of the font(s) used.
If your problem has been solved, please edit this topic's initial post and add "[Solved]" to the beginning of the subject line
Apache OpenOffice 4.1.5 & LibreOffice 6.0.4.2 - Windows 10 Professional
UnklDonald418
Volunteer
 
Posts: 965
Joined: Wed Jun 24, 2015 12:56 am
Location: Colorado, USA

Re: How to find font used when file was created.

Postby TopSpot123 » Fri Dec 29, 2017 1:18 am

UnklDonald418 wrote:There is a brute force method.
If your zip program will open the .odg file directly fine, otherwise make a copy and rename it with a .zip extension.
Open the archive and in the main directory there should be a file named content.xml.
Double click on that and it will probably open in your internet browser. Look for any lines containing fo:font-family= to see the names of the font(s) used.


This is exactly the kind of solution I was looking for. I had already opened it in a text editor just to see if there was any useful information to glean, but to no avail. This is a great tip and it worked flawlessly. Thank you so much!
Open Office 4 on Windows 10
TopSpot123
 
Posts: 2
Joined: Wed Dec 27, 2017 2:30 am

Re: How to find font used when file was created. [Solved]

Postby John_Ha » Fri Dec 29, 2017 4:26 pm

Remember that the font showing in the Writer font drop-down selection box is the font the document is asking for. This may NOT be the font being used to create the display because, if the font being asked for is not installed on the PC, Windows (or other operating system) will silently substitute a different font which is available. It is almost certainly the same in Draw.

The TestFonts add-on is invaluable for finding missing fonts which a Writer document is asking for, but which are not installed on the PC.

You can see which fonts are installed on the PC by Start > Control Panel > Fonts or by clicking C:\Windows\Fonts.
AOO 4.1.5, Windows 7 Home 64 bit

See the Writer Manual, the Writer FAQ, the Writer Tutorials and the Writer guide.

Remember: Always save your Writer files as .odt files. - see here for the many reasons why.
John_Ha
Volunteer
 
Posts: 5743
Joined: Fri Sep 18, 2009 5:51 pm
Location: UK


Return to Draw

Who is online

Users browsing this forum: No registered users and 4 guests