TtfEncodingParameters

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.font.IEncodingParameters

public class TtfEncodingParameters implements IEncodingParameters

Represents TTF encoding parameters. Should be used to request specific encoding from TTF Font.

Constructors

ConstructorDescription
TtfEncodingParameters(int platformId, int platformSpecificId)Initializes new instance of TtfEncodingParameters class.

Methods

MethodDescription
getPlatformId()Get PlatformId value.
setPlatformId(int value)Sets PlatformId value.
getPlatformSpecificId()Gets PlatformSpecificId value.
setPlatformSpecificId(int value)Sets PlatformSpecificId value.

TtfEncodingParameters(int platformId, int platformSpecificId)

public TtfEncodingParameters(int platformId, int platformSpecificId)

Initializes new instance of TtfEncodingParameters class. Takes Platform Id, Platform-specific encoding id as parameters. These parameters used to request special CMap subtable from main font CMap table, see table ‘CMap’, ’name’ in OpenType Font File specification.

Parameters:

ParameterTypeDescription
platformIdintPlatform id.
platformSpecificIdintPlatform-specific encoding id.

getPlatformId()

public int getPlatformId()

Get PlatformId value.

Returns: int - PlatformId value.

setPlatformId(int value)

public void setPlatformId(int value)

Sets PlatformId value.

Parameters:

ParameterTypeDescription
valueintPlatformId value.

getPlatformSpecificId()

public int getPlatformSpecificId()

Gets PlatformSpecificId value.

Returns: int - PlatformSpecificId value.

setPlatformSpecificId(int value)

public void setPlatformSpecificId(int value)

Sets PlatformSpecificId value.

Parameters:

ParameterTypeDescription
valueintPlatformSpecificId value.