🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #3599

Re: concat strings

#3599
From: Glenn Reid
Date: Thu, 08 Nov 1990 00:42
36 lines
2245 bytes
In article <F2s7R1w163w@phoenix.com> stanley@phoenix.com (John Stanley) writes:
>
>glenn@heaven.woodside.ca.us (Glenn Reid) writes:
>> In article <DAVIS.90Oct31164243@pacific.mps.ohio-state.edu> davis@pacific.mps
>> >   What is the easies way I can concatenate two strings of different fonts t
>> >produce a third string?

>   Is the font information stored with a string, or does the font
>information come into play only at the time the string is converted to a
>drawable form? (Either a show or charpath or like operation.)

>   The original post seemed to stress the two fonts combined on one
>string. Is this really what the poster requested, or did I misread this?

Gulp.  I didn't see the "...of different fonts..." in the original posting.

You're right; a string does not have any font information associated with
it.  It's just an ASCII string (usually, barring Kanji or something).

There's no way to concatenate two strings in different fonts.  In fact,
the question makes little sense.  A string is a string.  If you have two
strings and you want one, you can tack them together.  But if each string
needs to be printed in a separate font, you have to keep them separate.

Perhaps this is a better answer to the original question:  if you have
two strings that must be printed in two different fonts, simply "show"
one of them, change the font, and "show" the next one.  The current point
will be left at the end of the first string, and the second string will
begin where the first one left off.

Sorry about the confusion.  Maybe the original poster could clarify a bit?

-- 
 Glenn Reid				RightBrain Software
 glenn@heaven.woodside.ca.us		PostScript/NeXT developers
 ..{adobe,next}!heaven!glenn		415-851-1785
Technical Details
Message-ID: <316@heaven.woodside.ca.us>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!elroy.jpl.nasa.gov!decwrl!adobe!heaven!glenn
References: <312@heaven.woodside.ca.us> <F2s7R1w163w@phoenix.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!elroy.jpl.nasa.gov!decwrl!adobe!heaven!glenn
From: glenn@heaven.woodside.ca.us (Glenn Reid)
Newsgroups: comp.lang.postscript
Subject: Re: concat strings
Message-ID: <316@heaven.woodside.ca.us>
Date: 8 Nov 90 00:42:29 GMT
References: <312@heaven.woodside.ca.us> <F2s7R1w163w@phoenix.com>
Reply-To: glenn@heaven.woodside.ca.us (Glenn Reid)
Organization: RightBrain Software, Woodside, CA
Lines: 36