Type1Encoding

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.font.IFontEncoding, com.aspose.font.ISupportsNameAddressing

public class Type1Encoding implements IFontEncoding, ISupportsNameAddressing

Representerar Type1-typsnitts-kodning.

Metoder

MetodBeskrivning
decodeToGid(long charCode)Avkodar Gid till unicode.
decodeToGidParameterized(IEncodingParameters parameters, long charCode)Parametriserad avkodningsmetod.
encode(long gid, long charCode)Kodar tecknet.
equals(Object arg0)
getClass()
getNameToCharCodeIndex()Returnerar namn‑till‑teckenkod‑kodningskarta.
gidToUnicode(GlyphId gid)Avkodar Gid till Unicode.
hashCode()
notify()
notifyAll()
toString()
unicodeToGid(long unicode)Returnerar GlyphId för unicode.
wait()
wait(long arg0)
wait(long arg0, int arg1)

decodeToGid(long charCode)

public GlyphId decodeToGid(long charCode)

Avkodar Gid till unicode. Glyph‑id är ett unikt nummer för ett tecken, som beror på font‑typen. Till exempel: Type1:s id är ett teckennamn, en instans av klassen ( GlyphStringId ). TTF:s id är ett heltalsindex, en instans av klassen ( GlyphUInt32Id ).

Parameters:

ParameterTypBeskrivning
charCodelongTeckenkod för att hämta teckenidentifierare för.

Returns: GlyphId - Glyph identifier related to character code passed.

decodeToGidParameterized(IEncodingParameters parameters, long charCode)

public GlyphId decodeToGidParameterized(IEncodingParameters parameters, long charCode)

Parametriserad avkodningsmetod. Stöds inte för Type1‑fonttyp.

Parameters:

ParameterTypBeskrivning
parametersIEncodingParametersStöds inte för Type1‑fonttyp.
charCodelongStöds inte för Type1‑fonttyp.

Returns: GlyphId - Not supported for Type1 Font type.

encode(long gid, long charCode)

public void encode(long gid, long charCode)

Kodar tecknet. För TTF‑fonter är teckenkoden unicode. Stöds inte för Type1‑fonttyper.

Parameters:

ParameterTypBeskrivning
gidlongGlyfid.
charCodelongTeckenkod associerad med glyph‑id.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypBeskrivning
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getNameToCharCodeIndex()

public NameToCodeMap getNameToCharCodeIndex()

Returnerar namn‑till‑teckenkod‑kodningskarta. Obs: Teckenkod är inte unicode. Teckenkod är ett teckenindex i Font encoding “table”.

Returns: NameToCodeMap - Name to character code encoding map.

gidToUnicode(GlyphId gid)

public long gidToUnicode(GlyphId gid)

Avkodar Gid till Unicode. Glyph‑id är ett unikt nummer för ett tecken, som beror på font‑typen. Till exempel: Type1:s id är ett teckennamn, en instans av klassen ( GlyphStringId ). TTF:s id är ett heltalsindex, en instans av klassen ( GlyphUInt32Id ).

Parameters:

ParameterTypBeskrivning
gidGlyphIdGlyph‑identifierare för symbol att avkoda.

Returns: long – Unicode‑värde relaterat till det angivna glyph‑id.

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

unicodeToGid(long unicode)

public GlyphId unicodeToGid(long unicode)

Returnerar GlyphId för unicode. Eller notdef om fonten inte innehåller ett glyph för unicode. Glyph‑id är ett unikt nummer för ett tecken, som beror på font‑typen. Till exempel: Type1:s id är ett teckennamn, en instans av klassen ( GlyphStringId ). TTF:s id är ett heltalsindex, en instans av klassen ( GlyphUInt32Id ).

Parameters:

ParameterTypBeskrivning
unicodelongUnicode för att få glyph‑identifierare för.

Returns: GlyphId - Glyph identifier related to unicode passed.

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypBeskrivning
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypBeskrivning
arg0long
arg1int