Many thanks Lee - that nailed it. :-)
JP > John, > > You should be able to do this by nesting the text formatting functions: > > TextFont ( TextSize ( MyTable::MyField ; 11 ) ; "Verdana" ) > > Lee. > ================= > Binary Assist > 220 Gaines Oak Way > Suwanee, GA 30024 > Voice: (678) 313-5604 > Internet: [email protected] > Website: www.binaryassist.com > > FileMaker 8 Certified Developer > > > > On Feb 17, 2009, at 12:56 AM, John Perrin wrote: > >> Greetings Filemaker denizens. >> >> I'm working in FM 8.5, trying to ensure that text pasted into a text >> field >> is stored as 11 pt Verdana. >> >> The text originates from a variety of sources, such as websites, and >> consequently, often has ransom note overtones. >> >> My initial thinking was to use an auto-enter calculation using >> TextFormatRemove(fieldname) to strip out existing formatting from >> the text. >> >> That works up to a point, but this approach also kills any >> subsequent edits >> made to the field contents (such as making some words bold). >> >> So why not use an auto-enter calc to set the text to 11pt Verdana? >> This is >> where I'm coming unstuck. I know I can specify the typeface, OR the >> size, >> but I can't figure out how to specify BOTH the typeface AND the size. >> >> I've hunted around for an example of a custom function that might do >> this, >> but I'm not making much headway. >> >> Can anyone point me in the right direction? >> >> Thanks >> >> John Perrin >>
