How to replace ALL fonts in a large layout document?
-
Hi There!
I have a large multipage drawing set and am trying to change the typeface of all the notes and dimensions. Can I do this in a single command or do I need to go to each page and select/replace? (I'm on Mac OS using SK/LO 2020)Thanks in advance for any help!
-
Safest would be to select all the text on the page and change the font. Then move on to the next page.
If you like to live on the edge, you could get into the .layout file and edit the font. I have done that successfully once in awhile and unsuccessfully other times.
-
oooOOOoooo i'm intrigued by the second more dangerous version - will make a backup and give that a shot. Bummer you can't change a global "DimStyle" ...
-
The "dangerous version" involves renaming the .layout file to .zip, extracting the contents, editing the .xml files to replace the existing font name with the desired font name. Save the changes, compress the files to .zip and then change it back to .layout. It should be obvious that you don't want to do this with the original file. Instead make a copy of the file.
For future projects it wouldn't hurt to set your template to use the desired font up front.
-
Dave, I had no idea that the .layout is just a wrapper for a zip file. That sounds intriguing!
As soon as I get out of bed Iβm going to have a look! (Bring on SketchUp for iPad!)
I assume the best thing to monkey with xml is notepad?
-
Yeah. Notepad is probably best. Also make sure you are working on a copy of the .layout file and not your working file. If you screw something up you can make the file unreadable by layout.
A side note: Have a look at the Ref folder. Note there'll be a copy of your SketchUp file(s) as well as any image or text type files you might have inserted. That should make it clearer as to how LO works. Also maybe that will make it easier to understand why you should not copy from Sketchup or anything else and paste into LO unless you immediately unlink the reference since the copy and paste operation creates a reference link to a temp file which will absolutely be deleted by your operating system at some point. Also note that if you unlink a reference, LO is only going to look at the embedded version of the file and will no longer look at the original.
-
Fascinating - I tried hacking a copy file and replaced all the font names but for some reason when I zipped all back together it wouldn't open in LO - I assume whatever Windows is using as the default is compressing the files in a way that LO isn't expecting
So all LO is effectively doing is parsing and modifying XML files and making compressed images for viewports. mind blown
I used an app called Notepad++
-
You might try using 7zip to open the .layout file directly. It'll recognize the file as a zipped archive. Also make sure you use the exact right name for the font you are switching to.
Advertisement