
Pixelly font library for OpenSCAD
thingiverse
This is a versatile OpenSCAD library that generates pixelly fonts with a distinctive aesthetic reminiscent of PalmOS bitmap fonts created by Ron Buelow. The library includes an impressive collection of 29 different fonts. I used this library to craft a unique Minecraft-themed text topper for a birthday cake. To utilize the library, start by importing it: include <library.scad> The primary function for rendering pixelly fonts is renderString(), which accepts various parameters to customize its output. The default settings are indicated in parentheses: renderString(string, font=font_8x8, halign="left", valign="bottom", invert=false, spacing=1, size=10, pixelScale=1.01, height=0) string: the text to be rendered; only characters within the CP-1252 character set are supported; other characters will be replaced with spaces font: the font to use; fonts are defined in the fontdata.scad file halign: horizontal alignment options: "left", "right" or "center" valign: vertical alignment options: "bottom", "top" or "center" invert: set to true if you want to render the background instead of the characters spacing: scale for character spacing size: height of characters pixelScale: scaling factor applied to pixels; increasing this value above 1 will cause pixels to merge, while decreasing it below 1 will create blank space around them height: extrusion height for pixels; set to 0 for 2D pixels You can also use renderString() as a modifier for one or two shapes. In this case, pixelScale and height are ignored, and the shapes are used as pixels. If you specify only one shape, it will be treated as the filled pixel. For example: renderString("abc") circle(d=1); If you provide two shapes, the first one will be considered the filled pixel, while the second one will be the unfilled pixel. For instance, this code creates foreground pixels that are large circles and background pixels that are small circles: renderString("abc") { circle(d=1); circle(d=0.1); } To determine how much horizontal space a string of text will occupy, you can call getStringWidth(string[,options]). The available options are the font, spacing, and size parameters used by renderString().
With this file you will be able to print Pixelly font library for OpenSCAD with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Pixelly font library for OpenSCAD.