FontData.setName

Sets the name of the receiver. <p> Some platforms support font foundries. On these platforms, the name of the font specified in setName() may have one of the following forms: <ol> <li>a face name (for example, "courier")</li> <li>a foundry followed by a dash ("-") followed by a face name (for example, "adobe-courier")</li> </ol> In either case, the name returned from getName() will include the foundry. </p> <p> On platforms that do not support font foundries, only the face name (for example, "courier") is used in <code>setName()</code> and <code>getName()</code>. </p>

@param name the name of the font data (must not be null) @exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - when the font name is null</li> </ul>

@see #getName

class FontData
void
setName
(
String name
)

Meta