Package com.tom_roush.fontbox.cff
Class CharStringConverter
- java.lang.Object
-
- com.tom_roush.fontbox.cff.CharStringHandler
-
- com.tom_roush.fontbox.cff.CharStringConverter
-
public class CharStringConverter extends CharStringHandler
A class to translate Type2 CharString command sequence to Type1 CharString command sequence.
-
-
Constructor Summary
Constructors Constructor Description CharStringConverter(int defaultWidth, int nominalWidth)Constructor.CharStringConverter(int defaultWidth, int nominalWidth, IndexData fontGlobalSubrIndex, IndexData fontLocalSubrIndex)Deprecated.UseCharStringConverter(int, int)instead
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Object>convert(List<Object> commandSequence)Converts a sequence of Type1/Type2 commands into a sequence of CharStringCommands.List<Integer>handleCommand(List<Integer> numbers, CharStringCommand command)Handler for CharStringCommands.-
Methods inherited from class com.tom_roush.fontbox.cff.CharStringHandler
handleSequence
-
-
-
-
Constructor Detail
-
CharStringConverter
public CharStringConverter(int defaultWidth, int nominalWidth, IndexData fontGlobalSubrIndex, IndexData fontLocalSubrIndex)Deprecated.UseCharStringConverter(int, int)insteadConstructor.- Parameters:
defaultWidth- default widthnominalWidth- nominal width
-
CharStringConverter
public CharStringConverter(int defaultWidth, int nominalWidth)Constructor.- Parameters:
defaultWidth- default widthnominalWidth- nominal width
-
-
Method Detail
-
convert
public List<Object> convert(List<Object> commandSequence)
Converts a sequence of Type1/Type2 commands into a sequence of CharStringCommands.- Parameters:
commandSequence- the type1/type2 sequence- Returns:
- the CHarStringCommandSequence
-
handleCommand
public List<Integer> handleCommand(List<Integer> numbers, CharStringCommand command)
Handler for CharStringCommands.- Specified by:
handleCommandin classCharStringHandler- Parameters:
numbers- a list of numberscommand- the CharStringCommand- Returns:
- may return a command sequence of a subroutine
-
-