No label defined (Q43452)

From Library of Open Source Hardware
Revision as of 15:21, 25 February 2022 by Aisberg (talk | contribs) (Reconciliation Edit)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
No description defined
Language Label Description Also known as
English
No label defined
No description defined

    Statements

    1.0.0
    0 references
    thingiverse.com
    0 references
    avrgeek
    0 references
    www.thingiverse.com
    0 references
    https://spdx.org/licenses/CC-BY-SA-4.0
    0 references
    A smooth font was necessary for a few future projects I'm working on. A custom dwf file of the lettering could be generated and extruded, but a more generic, reusable method would be preferable. Below is an alternate method of embedding lettering into an OpenSCAD project. The code is based on the bitmap font module (http://www.thingiverse.com/thing:2054). The fnt_str function parameters map to the 8bit_str module. The block-size parameter will have no effect on the generated size of the letters, but the other parameters should work as in the bitmap library. Make sure the "fnt-LeagueGothic" directory is contained within the directory of the project. The font used was League Gothic from the League of Moveable Type (http://www.theleagueofmoveabletype.com/fonts/7-league-gothic) This font does have variable width, so some of the letters may look out of place. Manual adjustments have been made in this library, but OpenSCAD's immutable variables makes calculating the proper spacing difficult. Perhaps a smarter person has a way of pulling this off. Other fonts can be adapted to this module. The Customize.txt file will contain basic instructions for porting new fonts. As long as individual letters can be exported to dxf files, they can be easily used. This design has not been printed, so there may be problems with some of the finer details in the font. Make sure to check out the Numbered OpenSCAD Ruler at http://www.thingiverse.com/thing:6823. It certainly is my default ruler in OpenSCAD. Update: Version 20110403 of OpenScad is having problems with the blackslash. The OpenSCADFont-Version20110403.zip contains updated code to remove that character.
    0 references
    auto
    0 references
    en
    0 references
    0 references