com.tapina.robe.runtime
Class FontUtils

java.lang.Object
  extended bycom.tapina.robe.runtime.FontUtils

public class FontUtils
extends java.lang.Object

This class contains utility methods for working with fonts.


Constructor Summary
FontUtils()
           
 
Method Summary
static java.lang.String nativeToAcornName(java.awt.Font font, int maxLength)
          This method finds the Acorn name for a given native Font.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontUtils

public FontUtils()
Method Detail

nativeToAcornName

public static java.lang.String nativeToAcornName(java.awt.Font font,
                                                 int maxLength)
This method finds the Acorn name for a given native Font. Note that each name segment is restricted to 10 characters.

Parameters:
font - native Font object
maxLength - maximum length of Acorn name
Returns:
name of font for RISC OS programs, or null if no Acorn version could be created


Copyright © 2003-2005 . All Rights Reserved.