How do I stop an .EPS file from breaking text into multiple lines in PostScript?
I'm trying to specifically change out text from an .EPS file that's generated by an Adobe product, like Illustrator or InDesign. For whatever reason some fonts are broken onto separate lines and moved a tiny bit. It's not a TrueType versus OpenType thing.

Here's an example, the text is "$$tag1$$":

    %ADOEndSubsetFont
    /ZDCMCB+NiagaraSolid-Reg /NiagaraSolid-Reg findfont ct_VMDictPut
    /ZDCMCB+NiagaraSolid-Reg*1 
    [36{/.notdef}rp /dollar 12{/.notdef}rp /one 47{/.notdef}rp /a 5{/.notdef}rp /g 
    12{/.notdef}rp /t 139{/.notdef}rp]
    ZDCMCB+NiagaraSolid-Reg nf
    ZDCMCB+NiagaraSolid-Reg*1 [9 0 0 -9 0 0 ]msf
    264.206 109.1 mo
    ($$t)sh
    270.916 109.1 mo
    (ag1$$)
    [2.42188 2.51758 1.45117 2.53906 0 ]xsh

Here's an example where it doesn't break, the text is "$$tag1$$":

    %ADOEndSubsetFont
    /ZDCMCC+Utsaah-BoldItalic /Utsaah-BoldItalic findfont ct_VMDictPut
    /ZDCMCC+Utsaah-BoldItalic*1 
    [36{/.notdef}rp /dollar 13{/.notdef}rp /two 46{/.notdef}rp /a 5{/.notdef}rp /g 
    12{/.notdef}rp /t 139{/.notdef}rp]
    ZDCMCC+Utsaah-BoldItalic nf
    ZDCMCC+Utsaah-BoldItalic*1 [9 0 0 -9 0 0 ]msf
    264.206 118.1 mo
    ($$tag2$$)sh
    %ADOBeginSubsetFont: Garamond-Bold Initial
    %ADOt1write: (1.0.24)

We're using PHP to swap out the variables and resave the file with new values. The problem is we can't reliably determine where the text will break and if it does we can't replace it or the file will error out when trying to convert it to something like a PDF.

Any help is greatly greatly greatly appreciated!
How do I stop an .EPS file from breaking text into multiple lines in PostScript?
===

I'm trying to specifically change out text from an .EPS file that's generated by an Adobe product, like Illustrator or InDesign. For whatever reason some fonts are broken onto separate lines and moved a tiny bit. It's not a TrueType versus OpenType thing.

Here's an example, the text is "$$tag1$$":

    %ADOEndSubsetFont
    /ZDCMCB+NiagaraSolid-Reg /NiagaraSolid-Reg findfont ct_VMDictPut
    /ZDCMCB+NiagaraSolid-Reg*1 
    [36{/.notdef}rp /dollar 12{/.notdef}rp /one 47{/.notdef}rp /a 5{/.notdef}rp /g 
    12{/.notdef}rp /t 139{/.notdef}rp]
    ZDCMCB+NiagaraSolid-Reg nf
    ZDCMCB+NiagaraSolid-Reg*1 [9 0 0 -9 0 0 ]msf
    264.206 109.1 mo
    ($$t)sh
    270.916 109.1 mo
    (ag1$$)
    [2.42188 2.51758 1.45117 2.53906 0 ]xsh

Here's an example where it doesn't break, the text is "$$tag1$$":

    %ADOEndSubsetFont
    /ZDCMCC+Utsaah-BoldItalic /Utsaah-BoldItalic findfont ct_VMDictPut
    /ZDCMCC+Utsaah-BoldItalic*1 
    [36{/.notdef}rp /dollar 13{/.notdef}rp /two 46{/.notdef}rp /a 5{/.notdef}rp /g 
    12{/.notdef}rp /t 139{/.notdef}rp]
    ZDCMCC+Utsaah-BoldItalic nf
    ZDCMCC+Utsaah-BoldItalic*1 [9 0 0 -9 0 0 ]msf
    264.206 118.1 mo
    ($$tag2$$)sh
    %ADOBeginSubsetFont: Garamond-Bold Initial
    %ADOt1write: (1.0.24)

We're using PHP to swap out the variables and resave the file with new values. The problem is we can't reliably determine where the text will break and if it does we can't replace it or the file will error out when trying to convert it to something like a PDF.

Any help is greatly greatly greatly appreciated!