{"_id":"@42mk/segment","_rev":"2-c2356359c68e9efe11d4abf7b7ccd16a","name":"@42mk/segment","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@42mk/segment","version":"1.0.1","keywords":["font","icon-font","segment","webfont","display-font"],"author":{"name":"Pavlina Buchevska Boshkova"},"license":"OFL-1.1","_id":"@42mk/segment@1.0.1","maintainers":[{"name":"boshkov","email":"ilija.boshkov@gmail.com"}],"contributors":[{"url":"digit glyphs","name":"Mila Jovanovikj"},{"url":"font packaging","name":"Darko Bozhinovski"}],"homepage":"https://42dotmk.github.io/Segment/demo/","bugs":{"url":"https://github.com/42dotmk/Segment/issues"},"dist":{"shasum":"193620b1c6680a2913f8a4c08d94bce4122e6a4d","tarball":"https://registry.npmjs.org/@42mk/segment/-/segment-1.0.1.tgz","fileCount":9,"integrity":"sha512-m4zEVw9bjf61I9LbTCA0Os1BtwaqDj+HlU4KGHVXd23xr8GPtytmgOz44VHlkzRnKknvyJL3LZBIUQBr5xbSuA==","signatures":[{"sig":"MEQCIEt1kIRqtzzYIH1N6lgd8gq+8wNXI0wIu56fGTB0KpQGAiBv77ummVl3BkcrSfajCCFQRTmtrURzpbGRCrVf+r0rCQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@42mk%2fsegment@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":178919},"main":"dist/segment.css","type":"module","style":"dist/segment.css","engines":{"node":">=18"},"exports":{".":{"style":"./dist/segment.css","default":"./dist/segment.css"},"./css":"./dist/segment.css","./svg":"./dist/segment.svg","./ttf":"./dist/segment.ttf","./woff":"./dist/segment.woff","./woff2":"./dist/segment.woff2","./glyph-map":"./dist/glyph-map.json"},"gitHead":"9f7b45897be8018bd3cd4640a09529d027660fe0","scripts":{"demo":"npx --yes http-server . -p 8080 -c-1 -o /demo/","build":"node scripts/build.mjs","clean":"rm -rf dist build","prebuild":"node scripts/prepare.mjs","prepublishOnly":"npm run clean && npm run build"},"_npmUser":{"name":"boshkov","email":"ilija.boshkov@gmail.com"},"repository":{"url":"git+https://github.com/42dotmk/Segment.git","type":"git"},"_npmVersion":"10.8.2","description":"Segment — a custom display/icon font.","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"globby":"^14.0.2","svg2ttf":"^6.0.3","wawoff2":"^2.0.1","ttf2woff":"^3.0.0","oslllo-svg-fixer":"^6.0.1","svgicons2svgfont":"^12.0.0"},"_npmOperationalInternal":{"tmp":"tmp/segment_1.0.1_1782760438735_0.5259465705332187","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@42mk/segment","version":"1.0.2","description":"Segment — a custom display/icon font.","type":"module","main":"dist/segment.css","style":"dist/segment.css","exports":{".":{"style":"./dist/segment.css","default":"./dist/segment.css"},"./css":"./dist/segment.css","./ttf":"./dist/segment.ttf","./woff":"./dist/segment.woff","./woff2":"./dist/segment.woff2","./svg":"./dist/segment.svg","./glyph-map":"./dist/glyph-map.json"},"scripts":{"prebuild":"node scripts/prepare.mjs","build":"node scripts/build.mjs","clean":"rm -rf dist build","demo":"npx --yes http-server . -p 8080 -c-1 -o /demo/","prepublishOnly":"npm run clean && npm run build"},"keywords":["font","icon-font","segment","webfont","display-font"],"author":{"name":"Pavlina Buchevska Boshkova"},"contributors":[{"name":"Mila Jovanovikj","url":"digit glyphs"},{"name":"Darko Bozhinovski","url":"font packaging"}],"license":"OFL-1.1","homepage":"https://42dotmk.github.io/Segment/demo/","repository":{"type":"git","url":"git+https://github.com/42dotmk/Segment.git"},"bugs":{"url":"https://github.com/42dotmk/Segment/issues"},"publishConfig":{"access":"public","provenance":true},"engines":{"node":">=18"},"devDependencies":{"globby":"^14.0.2","oslllo-svg-fixer":"^6.0.1","svg2ttf":"^6.0.3","svgicons2svgfont":"^12.0.0","ttf2woff":"^3.0.0","wawoff2":"^2.0.1"},"_id":"@42mk/segment@1.0.2","gitHead":"55d2bddb60215a47e3a03d264dbec1340daf0627","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-yW1leD5to9upbYZ532mfi9FcgOqXwwSSevsAvo+K+pkginA18gbw2VDTC9+DZY1V2VhM+kreW6mGAasNRpRIyw==","shasum":"2a89772bc9cba4e886d7758c3df367292c06467f","tarball":"https://registry.npmjs.org/@42mk/segment/-/segment-1.0.2.tgz","fileCount":9,"unpackedSize":179624,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@42mk%2fsegment@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEBIRQX3TeJAdmeilUln/BSy86fLzI/WrLnRYOs3JWH6AiASdFp0nRvT1QoDVGlVFIUr8WcY3oCIWC1W28GxlcIl3Q=="}]},"_npmUser":{"name":"boshkov","email":"ilija.boshkov@gmail.com"},"directories":{},"maintainers":[{"name":"boshkov","email":"ilija.boshkov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/segment_1.0.2_1782761146903_0.6138333348226268"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-29T19:13:58.598Z","modified":"2026-06-29T19:25:47.482Z","1.0.1":"2026-06-29T19:13:58.888Z","1.0.2":"2026-06-29T19:25:47.076Z"},"bugs":{"url":"https://github.com/42dotmk/Segment/issues"},"author":{"name":"Pavlina Buchevska Boshkova"},"license":"OFL-1.1","homepage":"https://42dotmk.github.io/Segment/demo/","keywords":["font","icon-font","segment","webfont","display-font"],"repository":{"type":"git","url":"git+https://github.com/42dotmk/Segment.git"},"description":"Segment — a custom display/icon font.","contributors":[{"name":"Mila Jovanovikj","url":"digit glyphs"},{"name":"Darko Bozhinovski","url":"font packaging"}],"maintainers":[{"name":"boshkov","email":"ilija.boshkov@gmail.com"}],"readme":"# Segment\n\nA custom display font, packaged for web distribution.\n\n62 glyphs — uppercase `A`–`Z` (`U+0041`–`U+005A`), lowercase `a`–`z`\n(`U+0061`–`U+007A`), and digits `0`–`9` (`U+0030`–`U+0039`). Ships as\n`woff2`, `woff`, `ttf`, and `svg` with a ready-to-use CSS file.\n\n## Quick start\n\n```bash\nnpm install @42mk/segment\n```\n\n```css\n@import \"@42mk/segment/css\";\n\n.label {\n  font-family: \"Segment\", sans-serif;\n}\n```\n\nThe imported CSS defines the `@font-face` and a `.segment` helper class.\n\n## Try it / preview\n\nClone the repo and run the demo page:\n\n```bash\ngit clone https://github.com/42dotmk/Segment.git segment\ncd segment\nnpm install\nnpm run build\nnpm run demo\n```\n\nThen open <http://localhost:8080>.\n\nThe demo (`demo/index.html`) shows a pangram, a live input tester, and the\nfull A–Z / a–z / 0–9 glyph grid with codepoint labels. It loads fonts directly\nfrom `dist/`, so you must `npm run build` at least once before starting it.\n\nAny static server works — `npm run demo` just wraps `npx http-server demo`.\n\n## Install options\n\n### As an npm package\n\n```bash\nnpm install @42mk/segment\n```\n\nAvailable subpath exports:\n\n| Import                          | File                      |\n| ------------------------------- | ------------------------- |\n| `@42mk/segment` / `.../css`     | `dist/segment.css`        |\n| `@42mk/segment/woff2`           | `dist/segment.woff2`      |\n| `@42mk/segment/woff`            | `dist/segment.woff`       |\n| `@42mk/segment/ttf`             | `dist/segment.ttf`        |\n| `@42mk/segment/svg`             | `dist/segment.svg`        |\n| `@42mk/segment/glyph-map`       | `dist/glyph-map.json`     |\n\n### Direct file reference\n\n```html\n<link rel=\"preload\" href=\"/@42mk/segment/dist/segment.woff2\"\n      as=\"font\" type=\"font/woff2\" crossorigin>\n<link rel=\"stylesheet\" href=\"/@42mk/segment/dist/segment.css\">\n```\n\n## Build from source\n\n```bash\nnpm install\nnpm run build     # outputs dist/\nnpm run clean     # removes dist/ and build/\n```\n\nPipeline: `src/svg/*.svg` → stroke-expand (`oslllo-svg-fixer`) →\n`svgicons2svgfont` → `svg2ttf` → `ttf2woff` + `wawoff2` → `dist/`.\n\nSource SVGs are named `{HEX4}-{char}.svg`, where the hex prefix is the\nUnicode codepoint the glyph maps to. Add or replace glyphs by dropping\nfiles into `src/svg/` using that convention, then rebuild.\n\n## Scripts\n\n| Command         | What it does                                  |\n| --------------- | --------------------------------------------- |\n| `npm run build` | Build all font formats + CSS into `dist/`     |\n| `npm run demo`  | Serve `demo/` on http://localhost:8080        |\n| `npm run clean` | Remove `dist/` and `build/`                   |\n\n## Layout\n\n```\nsrc/svg/              source glyphs (unicode-prefixed filenames)\nscripts/              build pipeline\ndist/                 built font files + CSS (generated)\ndemo/                 local preview page\nsegment_font_export/  original icomoon export (reference only)\n```\n\n## Requirements\n\nNode.js 18+ (ESM build scripts).\n\n## Credits\n\n- **Original design:** Pavlina Buchevska — designed the original SVG glyphs.\n- **Number glyphs:** Mila Jovanovikj — designed the digit glyphs `0`–`9`.\n- **Font conversion & packaging:** [Darko Bozhinovski](https://darko.io) —\n  converted the original SVG design into a distributable web font.\n- **Demo page & packaging fixes:** Ilija Boshkov — built the demo/landing\n  page and tidied up the npm packaging.\n\n## License\n\n[SIL Open Font License 1.1](./LICENSE).\n","readmeFilename":"README.md"}