How to replace ALL fonts in a large layout document?

General discussion related to LayOut

How to replace ALL fonts in a large layout document?

Postby dborowsk » Tue Dec 22, 2020 11:52 pm

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!
0

dborowsk 
 

Re: How to replace ALL fonts in a large layout document?

Postby Dave R » Wed Dec 23, 2020 2:58 pm

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.
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: How to replace ALL fonts in a large layout document?

Postby dborowsk » Wed Dec 23, 2020 7:21 pm

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" ...
0

dborowsk 
 

Re: How to replace ALL fonts in a large layout document?

Postby Dave R » Wed Dec 23, 2020 7:31 pm

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. ;)
2
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: How to replace ALL fonts in a large layout document?

Postby JasonWD » Wed Jun 16, 2021 3:43 pm

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?
0
SketchUp, Thea Render, Vectorworks PC and Mac - Full LayOut workflow Concept>Production
User avatar
JasonWD 
Premium Member
Premium Member
 

Re: How to replace ALL fonts in a large layout document?

Postby Dave R » Wed Jun 16, 2021 3:50 pm

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.
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: How to replace ALL fonts in a large layout document?

Postby JasonWD » Wed Jun 16, 2021 8:50 pm

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++
0
SketchUp, Thea Render, Vectorworks PC and Mac - Full LayOut workflow Concept>Production
User avatar
JasonWD 
Premium Member
Premium Member
 

Re: How to replace ALL fonts in a large layout document?

Postby Dave R » Wed Jun 16, 2021 8:57 pm

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.
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to LayOut Discussions

Who is online

Users browsing this forum: No registered users and 2 guests

Visit our sponsors: