IFontMorseEncoder
public interface IFontMorseEncoder
Declares functionality to encode text by Morse code and get result as font glyphs.
Methods
encode(String text, IFont font, MorseAlphabets alphabet)
public abstract GlyphId[] encode(String text, IFont font, MorseAlphabets alphabet)
Encodes text by Morse code and returns result as set of glyphs(glyph identifiers).
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | Text to encode by Morse code. |
font | IFont | Font to take glyphs related to symbols dot and dash from. |
alphabet | MorseAlphabets | Alphabet of Morse code. |
Returns: com.aspose.font.GlyphId[] - Glyphs(glyphId) related to encoded text, i.e. “… — …” for the input text “SOS”.
encode(String text, IFont font, MorseAlphabets alphabet, char inputSeparator)
public abstract GlyphId[] encode(String text, IFont font, MorseAlphabets alphabet, char inputSeparator)
Encodes text by Morse code and returns result as set of glyphs(glyph identifiers).
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | Text to encode by Morse code. |
font | IFont | Font to take glyphs related to symbols dot and dash from. |
alphabet | MorseAlphabets | Alphabet of Morse code. |
inputSeparator | char | Symbol used to separate words in input text. |
Returns: com.aspose.font.GlyphId[] - Glyphs(glyphId) related to encoded text, i.e. “… — …” for the input text “SOS”.
encode(String text, IFont font, MorseAlphabets alphabet, char inputSeparator, char outputSeparator)
public abstract GlyphId[] encode(String text, IFont font, MorseAlphabets alphabet, char inputSeparator, char outputSeparator)
Encodes text by Morse code and returns result as set of glyphs(glyph identifiers).
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | Text to encode by Morse code. |
font | IFont | Font to take glyphs related to symbols dot and dash from. |
alphabet | MorseAlphabets | Alphabet of Morse code. |
inputSeparator | char | Symbol used to separate words in input text. |
outputSeparator | char | Symbol used to separate words in encoded text. |
Returns: com.aspose.font.GlyphId[] - Glyphs(glyphId) related to encoded text, i.e. “… — …” for the input text “SOS”.
encode(String text, IFont font)
public abstract GlyphId[] encode(String text, IFont font)
Encodes text in Morse code and returns result as set of glyphs(glyphId). Heuristic analysis is used to calculate the alphabet of the input text.
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | Text to encode by Morse code. |
font | IFont | Font to take glyphs related to symbols dot and dash from. |
Returns: com.aspose.font.GlyphId[] - Glyphs(glyphId) related to encoded text, i.e. “… — …” for the input text “SOS”.
encode(String text, IFont font, char inputSeparator)
public abstract GlyphId[] encode(String text, IFont font, char inputSeparator)
Encodes text in Morse code and returns result as set of glyphs(glyphId). Heuristic analysis is used to calculate the alphabet of the input text.
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | Text to encode by Morse code. |
font | IFont | Font to take glyphs related to symbols dot and dash from. |
inputSeparator | char | Symbol used to separate words in input text. |
Returns: com.aspose.font.GlyphId[] - Glyphs(glyphId) related to encoded text, i.e. “… — …” for the input text “SOS”.
encode(String text, IFont font, char inputSeparator, char outputSeparator)
public abstract GlyphId[] encode(String text, IFont font, char inputSeparator, char outputSeparator)
Encodes text in Morse code and returns result as set of glyphs(glyphId). Heuristic analysis is used to calculate the alphabet of the input text.
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | Text to encode by Morse code. |
font | IFont | Font to take glyphs related to symbols dot and dash from. |
inputSeparator | char | Symbol used to separate words in input text. |
outputSeparator | char | Symbol used to separate words in encoded text. |
Returns: com.aspose.font.GlyphId[] - Glyphs(glyphId) related to encoded text, i.e. “… — …” for the input text “SOS”.
encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet)
public abstract InputStream encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet)
Encodes text by Morse code and draws result in PNG-format.
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | Text to encode by Morse code. |
font | IFont | Font to take glyphs related to symbols dot and dash from. |
fontSize | double | Font size. |
lineSpacingType | LineSpacingType | Type of line spacing. Number of pixels or percent of font height. |
lineSpacingValue | int | Value of line spacing. |
maxWidth | int | Max width in pixels for image. |
alphabet | MorseAlphabets | Alphabet of Morse code. |
Returns: java.io.InputStream - Text, encoded by Morse code, in PNG-format as stream of bytes.
encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet, char inputSeparator)
public abstract InputStream encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet, char inputSeparator)
Encodes text by Morse code and draws result in PNG-format.
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | Text to encode by Morse code. |
font | IFont | Font to take glyphs related to symbols dot and dash from. |
fontSize | double | Font size. |
lineSpacingType | LineSpacingType | Type of line spacing. Number of pixels or percent of font height. |
lineSpacingValue | int | Value of line spacing. |
maxWidth | int | Max width in pixels for image. |
alphabet | MorseAlphabets | Alphabet of Morse code. |
inputSeparator | char | Symbol used to separate words in input text. |
Returns: java.io.InputStream - Text, encoded by Morse code, in PNG-format as stream of bytes.
encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet, char inputSeparator, char outputSeparator)
public abstract InputStream encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, MorseAlphabets alphabet, char inputSeparator, char outputSeparator)
Encodes text by Morse code and draws result in PNG-format.
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | Text to encode by Morse code. |
font | IFont | Font to take glyphs related to symbols dot and dash from. |
fontSize | double | Font size. |
lineSpacingType | LineSpacingType | Type of line spacing. Number of pixels or percent of font height. |
lineSpacingValue | int | Value of line spacing. |
maxWidth | int | Max width in pixels for image. |
alphabet | MorseAlphabets | Alphabet of Morse code. |
inputSeparator | char | Symbol used to separate words in input text. |
outputSeparator | char | Symbol used to separate words in encoded text. |
Returns: java.io.InputStream - Text, encoded by Morse code, in PNG-format as stream of bytes.
encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)
public abstract InputStream encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth)
Encodes text in Morse code and draws result in PNG-format. Heuristic analysis is used to calculate the alphabet of the input text.
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | Text to encode by Morse code. |
font | IFont | Font to take glyphs related to symbols dot and dash from. |
fontSize | double | Font size. |
lineSpacingType | LineSpacingType | Type of line spacing. Number of pixels or percent of font height. |
lineSpacingValue | int | Value of line spacing. |
maxWidth | int | Max width in pixels for image. |
Returns: java.io.InputStream - Text, encoded by Morse code, in PNG-format as stream of bytes.
encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, char inputSeparator)
public abstract InputStream encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, char inputSeparator)
Encodes text in Morse code and draws result in PNG-format. Heuristic analysis is used to calculate the alphabet of the input text.
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | Text to encode by Morse code. |
font | IFont | Font to take glyphs related to symbols dot and dash from. |
fontSize | double | Font size. |
lineSpacingType | LineSpacingType | Type of line spacing. Number of pixels or percent of font height. |
lineSpacingValue | int | Value of line spacing. |
maxWidth | int | Max width in pixels for image. |
inputSeparator | char | Symbol used to separate words in input text. |
Returns: java.io.InputStream - Text, encoded by Morse code, in PNG-format as stream of bytes.
encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, char inputSeparator, char outputSeparator)
public abstract InputStream encode(String text, IFont font, double fontSize, RenderingUtils.LineSpacingType lineSpacingType, int lineSpacingValue, int maxWidth, char inputSeparator, char outputSeparator)
Encodes text in Morse code and draws result in PNG-format. Heuristic analysis is used to calculate the alphabet of the input text.
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | Text to encode by Morse code. |
font | IFont | Font to take glyphs related to symbols dot and dash from. |
fontSize | double | Font size. |
lineSpacingType | LineSpacingType | Type of line spacing. Number of pixels or percent of font height. |
lineSpacingValue | int | Value of line spacing. |
maxWidth | int | Max width in pixels for image. |
inputSeparator | char | Symbol used to separate words in input text. |
outputSeparator | char | Symbol used to separate words in encoded text. |
Returns: java.io.InputStream - Text, encoded by Morse code, in PNG-format as stream of bytes.