FontFile

Inheritance: java.lang.Object, com.aspose.threed.A3DObject

public abstract class FontFile extends A3DObject

フォントファイルはグリフの定義を含み、テキストプロファイルの作成に使用されます。Example: 以下のコードは、指定されたフォントファイルを使用してテキストから 3D メッシュを作成する方法を示しています。

var font = FontFile.fromFile("CascadiaCode-Regular.otf");
             var text = new Text();
             text.setFont(font);
             text.setContent("ABC");
             text.setFontSize(10);
             var linear = new LinearExtrusion(text, 10).toMesh();
             var scene = new Scene(linear);
             scene.save("test.stl");

コンストラクタ

コンストラクタ説明
FontFile()

メソッド

メソッド説明
equals(Object arg0)
findProperty(String propertyName)プロパティを検索します。
fromFile(String fileName)ファイル名から FontFile をロードする
getClass()
getName()名前を取得します。
getProperties()すべてのプロパティのコレクションを取得します。
getProperty(String property)指定されたプロパティの値を取得します
hashCode()
notify()
notifyAll()
parse(byte[] bytes)バイトから FontFile を解析する
removeProperty(Property property)動的プロパティを削除します。
removeProperty(String property)名前で識別される指定されたプロパティを削除します
setName(String value)名前を設定します。
setProperty(String property, Object value)指定されたプロパティの値を設定します
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

FontFile()

public FontFile()

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

パラメーター説明
arg0java.lang.Object

Returns: boolean

findProperty(String propertyName)

public Property findProperty(String propertyName)

プロパティを検索します。動的プロパティ(CreateDynamicProperty/SetProperty により作成)またはネイティブプロパティ(名前で識別)になる可能性があります。

Parameters:

パラメーター説明
propertyNamejava.lang.Stringプロパティ名。

Returns: Property - The property.

fromFile(String fileName)

public static FontFile fromFile(String fileName)

ファイル名から FontFile をロードする

Parameters:

パラメーター説明
fileNamejava.lang.Stringフォントファイルへのパス

Returns: FontFile - FontFile instance

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getName()

public String getName()

名前を取得します。

Returns: java.lang.String - 名前です。

getProperties()

public PropertyCollection getProperties()

すべてのプロパティのコレクションを取得します。

Returns: PropertyCollection - the collection of all properties.

getProperty(String property)

public Object getProperty(String property)

指定されたプロパティの値を取得します

Parameters:

パラメーター説明
プロパティjava.lang.Stringプロパティ名

Returns: java.lang.Object - 見つかったプロパティの値

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

parse(byte[] bytes)

public static FontFile parse(byte[] bytes)

バイトから FontFile を解析する

Parameters:

パラメーター説明
bytesbyte[]OTF フォントファイルの生データ

Returns: FontFile - FontFile instance

removeProperty(Property property)

public boolean removeProperty(Property property)

動的プロパティを削除します。

Parameters:

パラメーター説明
propertyProperty削除するプロパティ

Returns: boolean - プロパティが正常に削除された場合は true

removeProperty(String property)

public boolean removeProperty(String property)

名前で識別される指定されたプロパティを削除します

Parameters:

パラメーター説明
プロパティjava.lang.String削除するプロパティ

Returns: boolean - プロパティが正常に削除された場合は true

setName(String value)

public void setName(String value)

名前を設定します。

Parameters:

パラメーター説明
java.lang.String新しい値

setProperty(String property, Object value)

public void setProperty(String property, Object value)

指定されたプロパティの値を設定します

Parameters:

パラメーター説明
プロパティjava.lang.Stringプロパティ名
java.lang.Objectプロパティの値

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

パラメーター説明
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

パラメーター説明
arg0long
arg1int