Index: 09_appendix/action_details.html =================================================================== --- 09_appendix/action_details.html (revision 32837) +++ 09_appendix/action_details.html (revision 32838) @@ -1971,6 +1971,73 @@ . When not specified, the code makes a guess (based on the file name). +
+
Syntax summary: | +LoadTtfGlyphs(filename, srcglyps, [dstchars], [outline|polygon], [scale], [offset]) + |
---|---|
Help text: | +Loads glyphs from an outline ttf in the specified source range, optionally remapping them to dstchars range in the pcb-rnd font + |
Registered by: | +ttf importer + |
+Import a range of glyphs from ttf outline font into the current font as symbols, starting from a specific character position. Note: pcb-rnd font symbols are not unicode code poitns, but consists of a single, 8 bit ASCII code page, thus values above 255 are invalid as destination symbol code. +
+ The +srcglyph + argumnet is a single + +character description + + or a pair of + +character descriptions + + separated with two dots (".."). In the former case the import is a single glyph, in the latter case the import is the whole range between the two characters, inclusive (one or more glyphs). +
+ The +dstchars + argumnet is always a single + +character description + +, addressing within the 0..255 range of the pcb-rnd font. This argment determines the first destination symbol that is going to be overwritten. If +srcglyph + specifies multiple characters, +dstchars + is internally stepped after each glyp import, up to 255, where the import stops. +
+ A + +character description + + addresses a code point on the input or a character code on the output, using one fo the following syntax variants: +
+ The 4th argument is either polygon or line. When it is polygon, the glyph is imported as a polygon (with or without holes). When it is line, all contours of the glyph is imported as a series of lines. When not specified, it defaults to polygon. +
+ Finally, +scale + and +offset + specifies the transformation during the import. Each argument is either a single number or a pair of numbers separated with comma or semicolon or / or * or x, and specify the x and y components of the transformation. When only the x component is specified, y is assumed to be the same (this is useful for scale). +
Index: 09_appendix/action_reference.html =================================================================== --- 09_appendix/action_reference.html (revision 32837) +++ 09_appendix/action_reference.html (revision 32838) @@ -13,7 +13,7 @@
Action | Description | Syntax | Plugin |
---|---|---|---|
About | Present the about box | About() | dialogs plugin | @@ -231,7 +231,7 @@
LoadScript | Load a fungw script | LoadScript(id, filename, [language]) | script plugin |
LoadTedaxFrom | Loads the specified block from a tedax file. | LoadTedaxFrom(netlist|board|footprint|stackup|layer|drc|drc_query|route_res, filename, [block_id, [silent, [src]]]) | tEDAx IO |
LoadTinycadFrom | Loads the specified tinycad .net file - the netlist must be tinycad netlist output. | LoadTinycadFrom(filename) | tinycad importer | -
LoadTtfGlyphs | Loads glyphs from an outline ttf in the specified source range, optionally remapping them to dstchars range in the pcb-rnd font | LoadTtfGlyphs(filename, srcglyps, [dstchars]) | ttf importer | +
LoadTtfGlyphs | Loads glyphs from an outline ttf in the specified source range, optionally remapping them to dstchars range in the pcb-rnd font | LoadTtfGlyphs(filename, srcglyps, [dstchars], [outline|polygon], [scale], [offset]) | ttf importer |
LoadVendorFrom | Loads the specified vendor lihata file. | LoadVendorFrom(filename) | vendor drill mapping |
Log | Manages the central, in-memory log. | Log(clear, [fromID, [toID]) Log(export, [filename, [text|lihata]) | |
LogDialog | Open the log dialog. | LogDialog() | lib_hid_common plugin | Index: 09_appendix/action_src/loadttfglyphs.html =================================================================== --- 09_appendix/action_src/loadttfglyphs.html (nonexistent) +++ 09_appendix/action_src/loadttfglyphs.html (revision 32838) @@ -0,0 +1,37 @@ +Import a range of glyphs from ttf outline font into the current font as +symbols, starting from a specific character position. Note: pcb-rnd +font symbols are not unicode code poitns, but consists of a single, +8 bit ASCII code page, thus values above 255 are invalid as destination +symbol code. +