HE_Mesh
5.1.0
|
Public Member Functions | |
RFont (String fontPath, int size) throws RuntimeException | |
RFont (String fontPath) throws RuntimeException | |
float | getLineSpacing () |
String | getFamily () |
RShape | toShape (String text) throws RuntimeException |
void | draw (String text) throws RuntimeException |
void | draw (char character) throws RuntimeException |
Public Attributes | |
boolean | forceAscii = false |
Static Protected Member Functions | |
static RShape | getContourAsShape (Glyph glyph, int startIndex, int count) |
static RShape | getContourAsShape (Glyph glyph, int startIndex, int count, float xadv) |
static RShape | getGlyphAsShape (Font font, Glyph glyph, int glyphIndex) |
static RShape | getGlyphAsShape (Font font, Glyph glyph, int glyphIndex, float xadv) |
static RShape | getGlyphAsShape (Font font, Glyph glyph, int glyphIndex, SingleSubst arabInitSubst, SingleSubst arabMediSubst, SingleSubst arabTermSubst) |
static RShape | getGlyphAsShape (Font font, Glyph glyph, int glyphIndex, SingleSubst arabInitSubst, SingleSubst arabMediSubst, SingleSubst arabTermSubst, float xadv) |
Private Member Functions | |
CmapFormat | getCmapFormat () |
Static Private Member Functions | |
static float | midValue (float a, float b) |
Related Functions | |
(Note that these are not member functions.) | |
int | size = DEFAULT_SIZE |
int | align = DEFAULT_ALIGN |
RFont (String fontPath, int size, int align) throws RuntimeException | |
void | setSize (int size) |
void | setAlign (int align) throws RuntimeException |
RShape | toShape (char character) |
RPolygon | toPolygon (char character) |
RGroup | toGroup (String text) throws RuntimeException |
void | draw (char character, PGraphics g) throws RuntimeException |
void | draw (String text, PGraphics g) throws RuntimeException |
void | draw (char character, PApplet g) throws RuntimeException |
void | draw (String text, PApplet g) throws RuntimeException |
RShape is a reduced interface for creating, holding and drawing text from TrueType Font files. It's a basic interpreter of TrueType fonts enabling to access any String in the form of a group of shapes. Enabling us in this way to access their geometry. RFont Geometry
geomerative.RFont.RFont | ( | String | fontPath, |
int | size | ||
) | throws RuntimeException |
geomerative.RFont.RFont | ( | String | fontPath | ) | throws RuntimeException |
void geomerative.RFont.draw | ( | String | text | ) | throws RuntimeException |
void geomerative.RFont.draw | ( | char | character | ) | throws RuntimeException |
|
private |
|
staticprotected |
|
staticprotected |
String geomerative.RFont.getFamily | ( | ) |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
float geomerative.RFont.getLineSpacing | ( | ) |
|
staticprivate |
RShape geomerative.RFont.toShape | ( | String | text | ) | throws RuntimeException |
|
related |
The alignment of the font. This property can take the following values: RFont.LEFT, RFont.CENTER and RFont.RIGHT align ( )
|
related |
Use this method to draw a character on a certain canvas. RFont_draw
character | the character to be drawn |
g | the canvas where to draw ( ) ( ) |
|
related |
Use this method to draw a character on a certain canvas. RFont_draw
text | the string to be drawn |
g | the canvas where to draw ( ) ( ) |
|
related |
Use this method to draw a character on a certain canvas. RFont_draw
character | char, the character to be drawn |
g | the canvas where to draw ( ) ( ) |
|
related |
Use this method to draw a character on a certain canvas. RFont_draw
text | the string to be drawn |
g | the canvas where to draw ( ) ( ) |
|
related |
The constructor of the RFont object. Use this in order to create a font with which we will be able to draw and obtain outlines of text. RFont
fontPath | String, the name of the TrueType Font file which should be situated in the data folder of the sketch. |
size | int, the point size of the font in points. |
align | int, this can only take the following values: RFont.LEFT, RFont.CENTER and RFont.RIGHT. ( ) ( ) ( ) ( ) ( ) |
|
related |
Use this method to reset the alignment of the font. This property can take the following values: RFont.LEFT, RFont.CENTER and RFont.RIGHT setAlign
align | int, this can only take the following values: RFont.LEFT, RFont.CENTER and RFont.RIGHT. |
|
related |
Use this method to reset the point size of the font. setSize
size | int, the point size of the font in points. |
|
related |
The point size of the font. size ( )
|
related |
|
related |
|
related |
boolean geomerative.RFont.forceAscii = false |
Should we try to use ASCII, rather than Unicode?