============================================================= PEG vobcoorder_fontscale--tjl: ============================================================= :Author: Tuomas Lukka :Date: $Date: 2002/10/29 07:15:07 $ :Revision: $Revision: 1.1 $ :Status: Incomplete We need to improve the scale mechanism for fonts. Issues ------ - How should getFontScale be used with TextStyle and TextVob? RESOLVED: In a bit awkward way, but workable:: scale = coords.getFontScale(cs) height = textStyle.getHeight(scale) / scale textcs = coords.ortho(cs, 0, 0, height, height) vs.put(textvob, textcs) This example puts text that is in the natural height of its textStyle inside the coordinate system. Changes ------- Into VobCoorder, add /** Get the scale that vobs put into this coordsys have, * for use with AWT font metrics. * The semantics depends on the current windowing system: * */ float getFontScale(int cs);