builders:sign
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
builders:sign [2022/08/20 16:49] – amanda | builders:sign [2022/08/28 22:23] (current) – amanda | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Sign ====== | ====== Sign ====== | ||
- | This is an item of class 54. | + | This is an item of class 54. You can use Fiddle>Create |
- | + | ||
- | (Create | + | |
This object will dynamically create a string of text based upon the value you enter in the ' | This object will dynamically create a string of text based upon the value you enter in the ' | ||
+ | |||
+ | Use Fiddle > Modify object to get at the text field. | ||
The field can be a simple string, but can also be prefixed by the following - | The field can be a simple string, but can also be prefixed by the following - | ||
- | | #c//n// | Sets the text to this color. | + | | #c//n// | Sets the text to this color. |
- | | #b//n// | Sets the background color. If you want to use the colorMap, specify #240 | | + | | #b//n// | Sets the background color. If you want to use the colorMap, specify #c240 | |
| #s//n// | Sets point size | | | #s//n// | Sets point size | | ||
| #f//sss// | Sets font to use (see below) | | | #f//sss// | Sets font to use (see below) | | ||
| #a//n// | Sets antialiasing off(0) or on(1) | | | #a//n// | Sets antialiasing off(0) or on(1) | | ||
- | | #p//n// | Adds background padding around text | | + | | #p//n// | Adds background padding around text (useful for some fonts to avoid clipping descenders etc.) | |
| #r//n// | Rotate text -90 to 90 | | | #r//n// | Rotate text -90 to 90 | | ||
| ## | Marks end of options, following is text to display. | | | ## | Marks end of options, following is text to display. | | ||
+ | |||
+ | This works by dynamically generating an img file for your text string at runtime. | ||
+ | |||
+ | e.g. | ||
+ | * # | ||
+ | * # | ||
+ | |||
Fonts available. | Fonts available. | ||
- | [[https:// | + | Specifying a font of " |
+ | |||
+ | Otherwise you may specify the name of a supported font. An up-to-date list is available by clicking | ||
Notes- | Notes- | ||
- | * Some fonts simply don't work. These are just a dump from my PC; let me know if you have issues, or want any adding. | + | * Some fonts simply don't work. These are mostly |
* An error in your string may cause either a default version, or nothing, to be displayed. | * An error in your string may cause either a default version, or nothing, to be displayed. | ||
* In the latter case, use Fiddle> | * In the latter case, use Fiddle> | ||
* Rotations > 90 don't seem to work even though they should :( | * Rotations > 90 don't seem to work even though they should :( | ||
* Different fonts behave differently w.r.t scaling, antialiasing and rotations. | * Different fonts behave differently w.r.t scaling, antialiasing and rotations. | ||
+ | * Don't touch imageURL or imageVersion - On Signs, these are set dynamically at runtime by the server. | ||
+ | * Using the generated imageURLs (sign.*.img) on other objects is currently discouraged as they are only generated when a sign is requested, and I can see that there will be a need to purge unused ones.. | ||
+ | * If you want to use the same text just in different colors, set #c to 239 and use the same exact value in ' | ||
+ | * Fix orientation to 0 for normal text; 1 for backwards text! | ||
+ | |||
+ | BUGS: | ||
* Non-ASCII characters probably won't work. | * Non-ASCII characters probably won't work. | ||
- | * BUG: background fill isn't working yet. | ||
* On clicking " | * On clicking " |
builders/sign.1661014192.txt.gz · Last modified: 2022/08/20 16:49 by amanda