Index: action_details.html =================================================================== --- action_details.html (revision 32837) +++ action_details.html (revision 32838) @@ -1971,6 +1971,73 @@ . When not specified, the code makes a guess (based on the file name). +

LoadTtfGlyphs

+
+

+ +
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). +

+

LoadVendorFrom

Index: action_reference.html =================================================================== --- action_reference.html (revision 32837) +++ action_reference.html (revision 32838) @@ -13,7 +13,7 @@ @@ -231,7 +231,7 @@ - + Index: action_src/loadttfglyphs.html =================================================================== --- action_src/loadttfglyphs.html (nonexistent) +++ 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. +

+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: +

    +
  • 'A' is converted to 65 (as a single charatcer using the 8 bit ASCII table) +
  • is converted as decimal number 10 +
  •  is converted as hexadecimal number, to 16 +
  • U+10 is converted as hexadecimal number, to 16 +
  • anything else is taken as a single character and is converted as it was wrapped in '' +
+

+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).

-This is pcb-rnd 2.2.4 (svn r32730) an interactive printed circuit board editor , Revision: 32805 +This is pcb-rnd 2.2.4 (svn r32730) an interactive printed circuit board editor , Revision: 32837
Action Description Syntax Plugin
AboutPresent the about boxAbout()dialogs plugin
LoadScriptLoad a fungw scriptLoadScript(id, filename, [language])script plugin
LoadTedaxFromLoads 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
LoadTinycadFromLoads the specified tinycad .net file - the netlist must be tinycad netlist output.LoadTinycadFrom(filename)tinycad importer
LoadTtfGlyphsLoads glyphs from an outline ttf in the specified source range, optionally remapping them to dstchars range in the pcb-rnd fontLoadTtfGlyphs(filename, srcglyps, [dstchars])ttf importer
LoadTtfGlyphsLoads glyphs from an outline ttf in the specified source range, optionally remapping them to dstchars range in the pcb-rnd fontLoadTtfGlyphs(filename, srcglyps, [dstchars], [outline|polygon], [scale], [offset])ttf importer
LoadVendorFromLoads the specified vendor lihata file.LoadVendorFrom(filename)vendor drill mapping
LogManages the central, in-memory log.Log(clear, [fromID, [toID])
Log(export, [filename, [text|lihata])
LogDialogOpen the log dialog.LogDialog()lib_hid_common plugin