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)

속성을 찾습니다. 동적 속성 (Created by CreateDynamicProperty/SetProperty) 또는 네이티브 속성 (Identified by its name)일 수 있습니다.

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