Skip to main content
snippy-snappy-chappy
Participating Frequently
August 31, 2018
Question

Need to Replace Pink Boxes in Text!

  • August 31, 2018
  • 4 replies
  • 2737 views

This is driving me mad, I have a font that goes A-Z 0-9 and that's it so any characters I put in like ! or ? become pink boxes.

In Illustrator it automatically replaces these with another font which is great.

What I need to know is how to replace these boxes specifically with another font. PLEASE HELP.

Tom

This topic has been closed for replies.

4 replies

snippy-snappy-chappy
Participating Frequently
September 7, 2018

Thank you all! finally managed to do it and find a nice looking font to go with it. I see what you are saying too but its also worth noting I rang Adobe about this first and they said it wasn't possible so I guess you are all Tom Cruise.

Thanks again.

Tom

AnneMarie Concepcion
Community Expert
Community Expert
September 5, 2018

Tom thanks for the info on the  font! I downloaded it and tested in Illustrator and InDesign, and can confirm what you describe. (Not that I ever doubted you!)

But Illustrator is *not* doing any sort of auto-swapping of a font. It is switching to the default font (Myriad) whenever you try to enter a character that doesn't exist in the (non-default) font you chose. If you dragged out an empty  text frame, switched  the font to Goldsmith, and started typing, your text would appear in Goldsmith. But as soon as you type a character that's doesn't exist in Goldsmith, Illustrator switches to Myriad, and stays in Myriad, even if you enter more characters that do exist in Goldsmith.

Here I started typing in that Goldsmith free display font. When I typed the equals sign, it switched back to its default Myriad Pro font, and stayed there:

InDesign has a different "philosophy" in that it assumes you want all the characters you enter to be in the font you chose. If you enter a character that doesn't exist in that font (pretty rare), you get "the pink box" meaning a missing glyph  (character) in that typeface. If you keep typing, the font remains the one you chose, unlike Illustrator.

I understand you wish InDesign would act like Illustrator, in this case swapping in Minion Pro (its default font) whenever you type a character that doesn't exist, or flow in/paste in text. I can see how that'd be useful. But understand that many more users would howl in protest.

My guess is that the Adobe engineers for InDesign decided designers would rather be alerted for missing glyphs instead of a quiet swap of a different typeface, which would be easy to miss when dealing with lots of text. So in InDesign you'll get pink boxes instead.

You can do a Find/Change or a grep thing as described above to choose a different font the missing glyphs.  (I think Myriad's equal sign glyph looks really weird with Goldsmith, personally.)

Hope that helps, understanding the underlying philosophies ...

AM

snippy-snappy-chappy
Participating Frequently
September 4, 2018

Thanks guys, this seems a really over complex issue for something Illustrator sorts out automatically.

Ive tried these and for one reason or another they seem to not work (probably me) and as you shouldn't ascend mountains you can't descend so I'm going to bow out here and get another font.

Just seems a real shame.

Tom

AnneMarie Concepcion
Community Expert
Community Expert
September 4, 2018

Hey Tom, I'm curious, what's the font that's missing characters? It's interesting that Illustrator replaces it automatically on the fly while InDesign does not. I'd like to see that in action.

It is possible that Illustrator is faking a font just as InDesign is doing, but Illustrator is not highlighting the substituted font to let you know. If it's the pink highlighting that's objectionable, you could go to InDesign's Preferences and turn it off  (Composition > Substituted Fonts):

AM

snippy-snappy-chappy
Participating Frequently
September 4, 2018

Hi Annemarie,

Illustrator substitutes the font perfectly with another font and no pink box whereas indesign puts an empty pink box there instead with no substitute font?

The font is The Goldsmith Vintage, its all very strange. It's happened on 2 Macs now so im sure you can replicate.

Tom

winterm
Legend
August 31, 2018

Use this simple regex:

\W

in Find/Change dialog (GREP tab), or as a GREP style option of your Paragraph style, and apply to it a Character style, which defines a different 'replacement' font.

Edit:

And please notice the upper case of W. It's important and doesn't mean 'shouting' here, as it means when you write a query title all in caps...

snippy-snappy-chappy
Participating Frequently
August 31, 2018

Ok hang on so I would go to grep and put find \W but what would I put change to? how to I apply a replacement font?

So is \W the symbol for the pink box I take it?

Tom

winterm
Legend
August 31, 2018

\W stands for any not-a-word-character. That said, characters, other than A-Z 0-9. Those lacking in your 'main' font, right?

Just make a Character style with your replacement font defined:

Then add GREP style to your Paragraph style:

… and you should be good to go.