Path: utzoo!attcan!uunet!cs.utexas.edu!wuarchive!udel!rochester!rutgers!cmcl2!uupsi!fozzie!stanley From: stanley@phoenix.com (John Stanley) Newsgroups: comp.lang.postscript Subject: Re: concat strings Message-ID: Date: 5 Nov 90 23:42:26 GMT References: <312@heaven.woodside.ca.us> Organization: One Man Brand Lines: 35 glenn@heaven.woodside.ca.us (Glenn Reid) writes: > In article davis@pacific.mps > >Hi, > > > > What is the easies way I can concatenate two strings of different fonts t > >produce a third string? I don't care if the two original strings are lost i > >the process-- I only need the result. An example would be greatly appreciat > > Here's an example string-concatenating procedure that is in my new book, > "Thinking in PostScript" (which I just saw lots of copies of in our local > bookstore!); I'll leave out the error checking code that raises a typecheck > if it isn't passed two strings. 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.) If the font information is not carried with the string, then concatenating two strings will mean any drawing/pathing operators that follow will produce the one resultant string in one font. In other words, you could NOT concatenate two strings of two different fonts to produce one string of two fonts. 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? <> "Aneth! That's a charming place!" "You've been to Aneth?" <> "Yes, but not yet." -- The Doctor and Seth, "The Horns of Nimon". >< <> "Sanity check!" "Sorry, we can't accept it, it's from out of state." - me