org.foray.font
Class FontUse4a

java.lang.Object
  extended by org.foray.font.FontUse4a
All Implemented Interfaces:
org.axsl.font.FontUse

public class FontUse4a
extends Object
implements org.axsl.font.FontUse

An implementation of the aXSL FontUse4a interface.

The FOrayFontUse is keyed by the following:


Constructor Summary
FontUse4a(ConsumerFont4a consumerFont, RegisteredFontDesc rfd, org.axsl.ps.Encoding encoding)
          Constructor.
 
Method Summary
 boolean canMakeFontOutput(String mimeType)
           
 IntArrayBuilder encode(CharSequence chars, int offset, int length, org.axsl.font.FontOptions options, org.axsl.common.i18n.Orthography orthography)
           
 int encode(int codePoint)
           
 org.axsl.ps.Encoding getEncoding()
           
 Font4a getFont()
           
 org.axsl.font.FontConsumer getFontConsumer()
           
 org.axsl.font.output.FontOutput getFontOutput(String mimeType)
           
 Font4a getFOrayFont()
          Return the Font instance cast as a Font4a.
 FontConsumer4a getFOrayFontConsumer()
          Returns the font consumer instance.
 FontServer4a getFOrayFontServer()
          Returns the font server.
 FreeStandingFont getFreeStandingFont()
          Returns the related FreeStandingFont instance.
 org.apache.commons.logging.Log getLogger()
          Returns the logger.
 String getPostscriptName()
           
 RegisteredFontDesc getRegisteredFontDesc()
          Returns the parent registered font description.
 Subset getSubset()
          Returns the subset for this font use.
 boolean glyphAvailable(int codePoint)
           
 org.axsl.font.FontUse nextBolderFont()
           
 org.axsl.font.Font.Weight nextBolderWeight()
           
 org.axsl.font.FontUse nextLighterFont()
           
 org.axsl.font.Font.Weight nextLighterWeight()
           
 void registerCharsUsed(CharSequence charSequence)
           
 void registerCharUsed(int c)
           
 float simulateBackslant()
           
 float simulateCondensed()
           
 float simulateExpanded()
           
 float simulateExtraCondensed()
           
 float simulateExtraExpanded()
           
 float simulateOblique()
           
 float simulateSemiCondensed()
           
 float simulateSemiExpanded()
           
 float simulateSmallCaps()
           
 float simulateUltraCondensed()
           
 float simulateUltraExpanded()
           
 int smallCapsSize(int fontSize)
           
 boolean subSetting()
          Indicates whether this font use is being subsetted.
 int unavailableChar(CharSequence charSequence, int beginIndex)
           
 int[] unavailableChars(CharSequence charSequence, int beginIndex)
           
 boolean wasUsed()
           
 int width(CharSequence chars, int offset, int length, int fontSize, int letterSpacing, int wordSpacing, org.axsl.font.FontOptions options, org.axsl.common.i18n.Orthography orthography)
           
 int width(int codePoint, int fontSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FontUse4a

public FontUse4a(ConsumerFont4a consumerFont,
                 RegisteredFontDesc rfd,
                 org.axsl.ps.Encoding encoding)
Constructor.

Parameters:
consumerFont - The parent ConsumerFont instance.
rfd - The parent RegisteredFontDesc instance.
encoding - The specific encoding for this font use.
Method Detail

getFont

public Font4a getFont()
Specified by:
getFont in interface org.axsl.font.FontUse

getFOrayFont

public Font4a getFOrayFont()
Return the Font instance cast as a Font4a.

Returns:
The Font4a instance.

getFreeStandingFont

public FreeStandingFont getFreeStandingFont()
Returns the related FreeStandingFont instance.

Returns:
The related FreeStandingFont instance.

encode

public int encode(int codePoint)
Specified by:
encode in interface org.axsl.font.FontUse

encode

public IntArrayBuilder encode(CharSequence chars,
                              int offset,
                              int length,
                              org.axsl.font.FontOptions options,
                              org.axsl.common.i18n.Orthography orthography)
Specified by:
encode in interface org.axsl.font.FontUse

getEncoding

public org.axsl.ps.Encoding getEncoding()
Specified by:
getEncoding in interface org.axsl.font.FontUse

width

public int width(int codePoint,
                 int fontSize)
Specified by:
width in interface org.axsl.font.FontUse

width

public int width(CharSequence chars,
                 int offset,
                 int length,
                 int fontSize,
                 int letterSpacing,
                 int wordSpacing,
                 org.axsl.font.FontOptions options,
                 org.axsl.common.i18n.Orthography orthography)
Specified by:
width in interface org.axsl.font.FontUse

nextBolderWeight

public org.axsl.font.Font.Weight nextBolderWeight()
Specified by:
nextBolderWeight in interface org.axsl.font.FontUse

nextLighterWeight

public org.axsl.font.Font.Weight nextLighterWeight()
Specified by:
nextLighterWeight in interface org.axsl.font.FontUse

nextBolderFont

public org.axsl.font.FontUse nextBolderFont()
Specified by:
nextBolderFont in interface org.axsl.font.FontUse

nextLighterFont

public org.axsl.font.FontUse nextLighterFont()
Specified by:
nextLighterFont in interface org.axsl.font.FontUse

unavailableChar

public int unavailableChar(CharSequence charSequence,
                           int beginIndex)
Specified by:
unavailableChar in interface org.axsl.font.FontUse

unavailableChars

public int[] unavailableChars(CharSequence charSequence,
                              int beginIndex)
Specified by:
unavailableChars in interface org.axsl.font.FontUse

glyphAvailable

public boolean glyphAvailable(int codePoint)
Specified by:
glyphAvailable in interface org.axsl.font.FontUse

simulateSmallCaps

public float simulateSmallCaps()
Specified by:
simulateSmallCaps in interface org.axsl.font.FontUse

smallCapsSize

public int smallCapsSize(int fontSize)
Specified by:
smallCapsSize in interface org.axsl.font.FontUse

simulateOblique

public float simulateOblique()
Specified by:
simulateOblique in interface org.axsl.font.FontUse

simulateBackslant

public float simulateBackslant()
Specified by:
simulateBackslant in interface org.axsl.font.FontUse

simulateUltraCondensed

public float simulateUltraCondensed()
Specified by:
simulateUltraCondensed in interface org.axsl.font.FontUse

simulateExtraCondensed

public float simulateExtraCondensed()
Specified by:
simulateExtraCondensed in interface org.axsl.font.FontUse

simulateCondensed

public float simulateCondensed()
Specified by:
simulateCondensed in interface org.axsl.font.FontUse

simulateSemiCondensed

public float simulateSemiCondensed()
Specified by:
simulateSemiCondensed in interface org.axsl.font.FontUse

simulateSemiExpanded

public float simulateSemiExpanded()
Specified by:
simulateSemiExpanded in interface org.axsl.font.FontUse

simulateExpanded

public float simulateExpanded()
Specified by:
simulateExpanded in interface org.axsl.font.FontUse

simulateExtraExpanded

public float simulateExtraExpanded()
Specified by:
simulateExtraExpanded in interface org.axsl.font.FontUse

simulateUltraExpanded

public float simulateUltraExpanded()
Specified by:
simulateUltraExpanded in interface org.axsl.font.FontUse

getPostscriptName

public String getPostscriptName()
Specified by:
getPostscriptName in interface org.axsl.font.FontUse

getFontConsumer

public org.axsl.font.FontConsumer getFontConsumer()
Specified by:
getFontConsumer in interface org.axsl.font.FontUse

getFOrayFontConsumer

public FontConsumer4a getFOrayFontConsumer()
Returns the font consumer instance.

Returns:
The font consumer instance.

registerCharUsed

public void registerCharUsed(int c)
Specified by:
registerCharUsed in interface org.axsl.font.FontUse

registerCharsUsed

public void registerCharsUsed(CharSequence charSequence)
Specified by:
registerCharsUsed in interface org.axsl.font.FontUse

getLogger

public org.apache.commons.logging.Log getLogger()
Returns the logger.

Returns:
The logger.

getSubset

public Subset getSubset()
Returns the subset for this font use.

Returns:
The subset for this font use.

subSetting

public boolean subSetting()
Indicates whether this font use is being subsetted.

Returns:
True iff this font is being subsetted.

wasUsed

public boolean wasUsed()
Specified by:
wasUsed in interface org.axsl.font.FontUse

getFontOutput

public org.axsl.font.output.FontOutput getFontOutput(String mimeType)
Specified by:
getFontOutput in interface org.axsl.font.FontUse

getFOrayFontServer

public FontServer4a getFOrayFontServer()
Returns the font server.

Returns:
The font server.

getRegisteredFontDesc

public RegisteredFontDesc getRegisteredFontDesc()
Returns the parent registered font description.

Returns:
The parent registered font description.

canMakeFontOutput

public boolean canMakeFontOutput(String mimeType)
Specified by:
canMakeFontOutput in interface org.axsl.font.FontUse


Copyright © 2017. All rights reserved.