3d-print-letterpress 中文文档教程

发布于 7年前 浏览 19 更新于 3年前

3d-print-letterpress

将 OpenType 和 TrueType(.otf 和 .ttf)文件转换为具有指定磅值和字形的凸版印刷类型的 3D 可打印 (.stl) 模型。

该项目汇集了两种新旧技术,通过生产民主化赋予人们权力。

Installation

3d-print-letterpress 需要 node.js

通过 npm 安装

$ npm install git+https://git@github.com:jonathanzong/3d-print-letterpress.git -g

Usage Example

$ 3d-print-letterpress 
Usage: 3d-print-letterpress type-file [point-size [glyphs]]
Usage: 3d-print-letterpress svg-file

请记住,STL 文件是无单位的,您必须将模型缩放到类型高(0.918 英寸或 23.317 英寸)毫米)。

Single Glyph

$ 3d-print-letterpress Gotham-Book.otf 16 H
output written to Gotham-BookSTL/Gotham-Book16ptUpperH.stl

Multiple Glyphs

$ 3d-print-letterpress Gotham-Book.otf 16 OMG
output written to Gotham-BookSTL/Gotham-Book16ptUpperO.stl
output written to Gotham-BookSTL/Gotham-Book16ptUpperM.stl
output written to Gotham-BookSTL/Gotham-Book16ptUpperG.stl

SVG Path File

$ 3d-print-letterpress bird.svg
output written to svg_pathSTL/svg_path97ptbird.stl

Final Product

根据您的 3d 打印机的分辨率,您可能需要打磨字母面以使其完全水平。 我在用类型规检查高度时使用了细砂纸(如上图所示)。

我的第一个打印:

我选择了一个无衬线字母T 因为它的几何图形。 凹槽是 3d 打印机如何挤出的副产品。 我喜欢它如何指示制作字体的材料。

Dependencies

3d 打印凸版使用

  • opentype -- parser for OpenType and TrueType formats
  • JSModeler -- 3D modeling library modifed here to work in Node.js (removed references to the DOM)
  • node-raphael -- SVG utility to perform path calculations

License

麻省理工学院

3d-print-letterpress

Converts OpenType and TrueType (.otf and .ttf) files into 3D printable (.stl) models of letterpress type for a specified point size and glyph.

This project brings together two technologies, old and new, that empower people through the democratization of production.

Installation

3d-print-letterpress requires node.js.

Install via npm

$ npm install git+https://git@github.com:jonathanzong/3d-print-letterpress.git -g

Usage Example

$ 3d-print-letterpress 
Usage: 3d-print-letterpress type-file [point-size [glyphs]]
Usage: 3d-print-letterpress svg-file

Keep in mind that STL files are unitless, and that you will have to scale your models to type-high (0.918 in or 23.317 mm).

Single Glyph

$ 3d-print-letterpress Gotham-Book.otf 16 H
output written to Gotham-BookSTL/Gotham-Book16ptUpperH.stl

Multiple Glyphs

$ 3d-print-letterpress Gotham-Book.otf 16 OMG
output written to Gotham-BookSTL/Gotham-Book16ptUpperO.stl
output written to Gotham-BookSTL/Gotham-Book16ptUpperM.stl
output written to Gotham-BookSTL/Gotham-Book16ptUpperG.stl

SVG Path File

$ 3d-print-letterpress bird.svg
output written to svg_pathSTL/svg_path97ptbird.stl

Final Product

Depending on the resolution of your 3d printer, you will likely have to sand the letter face to be perfectly level. I used fine sandpaper while checking the height with a type gauge (pictured above).

My first print:

I chose a sans-serif letter T for its very geometric figure. The grooves are a byproduct of how the 3d printer extrudes. I like how it gives an indication of the material from which the type is made.

Dependencies

3d-print-letterpress uses

  • opentype -- parser for OpenType and TrueType formats
  • JSModeler -- 3D modeling library modifed here to work in Node.js (removed references to the DOM)
  • node-raphael -- SVG utility to perform path calculations

License

MIT

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文