castaylor.blogg.se

Corona renderer
Corona renderer




corona renderer

Handler : A function that will accept a 'tap' event on a hyperlink. Load the table using using funx.loadTextStylesĭefaultStyle : The name of the the default style (from textstyles.txt) for text, default is "Normal". MinWordLen : 2, - Minimum length of a word shown at the end of a line, e.g. If this value is set to the full path to the cache directory to use for json file caching (slower). Uses sqlite3 caching (faster).ĬacheDir : If cacheToDB is false, then try this method for caching.

corona renderer

Start low, like 5.ĬacheToDB : Default is true. MinCharCount : Minimum number of characters per line. This module caches the text rendering so that the second time you show the text, it appears much faster. "Left" | "Right" | "Center" Caching Settings "80%"Īlignment : Default text alignment, note the initial capital letter. Changed by any style settings in the text.

corona renderer

Opacity : The default font opacity (or alpha). Use an RGBa table, like this: (black type) Changed by any style settings in the text.Ĭolor : The default font color. Don't use Postscript names, they won't work. Font Defaultsįont : The iOS or Android font name, e.g. Testing = false, - True for testing, shows borders and colors. UseHTMLSpacing : Set to true to change all returns and tabs and double-spaces to a single space, as with HTML in a browser. IsHTML : Set to true if the text is simplified HTML styled text. MaxHeight : Maximum height of the text block. Width : width of the column of text in pixels A pure-Lua text rendering module for Corona SDK which can handle basic HTML, fonts, font-styles, and even basic font metrics.






Corona renderer