question: public String resolveFont ( java . awt . Font font ) { String ret = "-*" ; ret = ret . concat ( "-" + font . getName ( ) ) ; if ( font . isBold ( ) ) ret = ret . concat ( "-bold" ) ; else ret = ret . concat ( "-normal" ) ; if ( font . isItalic ( ) ) ret = ret . concat ( "-i" ) ; else ret = ret . concat ( "-o" ) ; ret = ret . concat ( "-normal" ) ; ret = ret . concat ( "--" + font . getSize ( ) ) ; ret = ret . concat ( "-*" ) ; ret = ret . concat ( "-*" ) ; ret = ret . concat ( "-*" ) ; ret = ret . concat ( "-*" ) ; ret = ret . concat ( "-*" ) ; ret = ret . concat ( "-*" ) ; return ret ; }
target:  In the idl, fonts are represented by a string. Traditionally, with MATT, the font was a X representation of a font. That's what is being done here - we're taking the Font structure, and then going to XFont type text structure. Dashes need to be included, line feeds are not. They are here only for readability. The JText object brings this back to a java Font. Like wise, doing the transformation this way makes all specialists compatible with all other clients.