Glyph

Export to your toolchain

Glyph's own format is GDSII, but the rest of a group's toolchain often isn't: a collaborator's tool reads CIF, a foundry wants a KLayout layer-properties file, a mechanical CAD package wants DXF, a newer flow expects OASIS. This guide builds a small two-cell hierarchical design from a blank document, sends it out to each of those formats, exports a layer map, and is honest about what every interchange format keeps and what it quietly can't.

  • Time: ~14 min
  • You'll need: Glyph open on a blank document, and a plain-text editor (Notepad, VS Code, TextEdit — anything that isn't GDS-aware) to peek inside a couple of the exported files partway through. Nothing to download beforehand — every format below is one Glyph can also read back in, though this guide only proves that round trip for the CIF, in step 15.
  1. Name and save it — File → Save as…. Every filename the rest of this guide shows — including every toast — only makes sense once the document actually has one; a truly blank document is called Untitled.gds until you save it. Open File → Save as… (or press Ctrl+Shift+S). In Chrome or Edge this opens a native Save dialog pre-filled with Untitled.gds; replace the Untitled part with chip-demo (Glyph keeps the .gds extension) and pick a folder. Firefox and Safari don't implement that dialog: there, Save as… downloads the file immediately under whatever name the document already has — on a fresh document that's still Untitled.gds, so rename the downloaded file to chip-demo.gds yourself if you want it to match the rest of this guide (the bytes are identical either way). The toast reads Saved as chip-demo.gds.

    A Glyph toast notification with a green checkmark icon reading Saved as chip-demo.gds to your browser's downloads, with a Details button that shows the SHA-256 checksum of the written bytes.
  2. Trim to two layers — delete Layer 3. A blank document starts with three default layers; this design only ever uses two. Click the Layers tab, hover the Layer 3 row, and click its trash-can icon at the right end — Glyph asks you to confirm ("Delete Layer 3 and all shapes on it? You can undo this."), so click Delete. The panel now lists only Layer 1 and Layer 2, proof the deletion actually happened.

    The Layers tab of Glyph's side panel showing exactly two rows, Layer 1 and Layer 2, after the third default layer was deleted.
  3. Create the PAD cell. Click the Cells tab, click the + button in its header, type PAD, and press Enter. A new row appears below TOP: TOP is the cell your document starts in, and PAD is empty for now and sits at the same level because nothing uses it yet.

    The Cells tab of Glyph's side panel showing two rows: TOP (highlighted as the active cell) and a newly created empty cell named PAD, with the add-cell plus button in the panel header.
  4. Enter PAD and draw the 20 µm outer pad on Layer 1. Click the arrow icon at the right end of the PAD row (or double-click the row) to enter it — the breadcrumb at the top-left of the canvas now reads TOP (top) › PAD. Layer 1 is already the current layer, so arm the Box tool (the square icon in the toolbar, shortcut B) and drag out a rough square near the centre — you can't drag an exact 20 × 20 µm, and you don't need to. With the box still selected, type the real numbers into the Properties panel, which is authoritative. W and H resize the shape about its centre — the Anchor choice only changes what X and Y mean. With Anchor on Corner, type W and H before X and Y (resizing about the centre moves the corner, so a later size edit would shift the position you just typed); with Anchor on Center, the order doesn't matter. Anchor stays on Corner (the default), so type W 20, then H 20, then X -10, then Y -10 — X and Y land as the box's lower-left corner. The status bar reads 1 shape · 1 selected, and the Properties panel's Layer row confirms Layer 1 (1/0).

    Glyph editing the PAD cell: one large orange hatched square with selection handles, the breadcrumb reading TOP (top) then PAD, the Properties panel showing X minus 10, Y minus 10, W 20 and H 20 micrometres and Layer 1, and the status bar reading 1 shape and 1 selected.View full image
  5. Switch to Layer 2 and draw the 8 µm inner alignment square. Click the Layers tab and click the Layer 2 row so it becomes the current layer — the highlighted row is the one new shapes land on. Arm the Box tool again (Glyph's draw tools are one-shot: a committed box reverts to Select, so a second drag without re-arming would silently marquee-select instead of drawing) and drag a rough square centred on the same origin, inside the pad. Size it the same way: W 8, H 8, X -4, Y -4. The Properties panel's Layer row now reads Layer 2 (2/0), and the status bar reads 2 shapes · 1 selected. PAD is done — a 20 µm pad with an 8 µm alignment square nested inside it, both centred on the cell's own origin.

    The PAD cell with the orange hatched 20 micrometre outer pad and a smaller selected blue 8 micrometre inner square centred on it, the Properties panel showing X minus 4, Y minus 4, W 8 and H 8 micrometres and Layer 2, and the status bar reading 2 shapes and 1 selected.View full image
  6. Back in TOP, hover the PAD row to find the insert-instance icon. Click TOP (top) in the breadcrumb to go back up. In the Cells panel, hover the PAD row: a small stacked-sheets icon already sits at the row's LEFT end at all times — that's just the row's own cell-type icon, not a control, and hovering it does nothing. What hovering the row DOES reveal is a fresh set of icons at the RIGHT end, and the one among them that looks like stacked cubes is Insert cell instance (SREF) — that's the one the next step clicks, not the icon on the left.

    A close crop of the hovered PAD row in Glyph's Cells panel: a small stacked-sheets cell icon at the left end that is not a control, then a row of action icons revealed at the right, including a stacked-cubes Insert cell instance icon, followed by the shape count 2 and an enter arrow.
  7. Place two instances of PAD roughly 200 µm apart. Click the stacked-cubes icon, then click once on the canvas about 100 µm left of the origin. A copy of the pad appears — except it isn't a copy, it's a reference (GDS calls it an SREF): a pointer to PAD plus a position. The instant TOP references PAD once, PAD stops being a root row in the Cells panel — the tree only lists cells nothing else uses, so it now lives nested one level under TOP. Click the disclosure triangle on the TOP row to reveal it there, hover that nested PAD row the same way, click the same stacked-cubes icon again, and click once more about 100 µm right of the origin. The status bar reads 0 shapes · 2 refs: TOP itself still holds no geometry of its own, only two placements of PAD. The Cells panel now shows the full story at a glance — TOP's own row reads 0·2 (0 shapes of its own, 2 references), and the nested PAD row reads 2 with a ×2 badge beside it (2 shapes inside it, used twice).

    The Glyph canvas showing two identical hatched square pads roughly 200 micrometres apart, each an orange outer square with a blue inner square, the tab reading chip-demo.gds, the Cells panel showing TOP expanded with PAD nested underneath reading 2 and times 2, and the status bar reading 0 shapes and 2 refs.View full image
  8. Find the interchange formats — File → Export. Six formats live in one flyout: Export SVG…, Export PNG…, Export DXF…, Export CIF…, Export OASIS…, Export EPS…, then Export figure… and Export per layer… below a divider. Glyph's own GDS is deliberately NOT in this list — it isn't an interchange format to export to, it's the native format Ctrl+S always writes (step 14 below). (File → Save as… — the command you already used in step 1 — reaches all seven writable formats in one native "Save as" dialog: these same six interchange formats, plus GDS itself. Type any of the seven extensions and that picks the format. This guide uses the dedicated Export commands for the six interchange formats instead, because each one names its destination format outright rather than asking you to spell an extension correctly.) The same flyout also carries Export connectivity…, which this guide doesn't use: it writes a port↔port JSON graph of component instances and connectors, not geometry, so it's a bridge for MINT/Fluigi-class tooling rather than another format your mask-layout toolchain reads.

    Glyph's File menu Export flyout listing Export SVG, Export PNG, Export DXF, Export CIF, Export OASIS, Export EPS, Export connectivity, then below a divider Export figure, Export per layer and Export current cell.
  9. Export CIF… Click it. No GLYPH dialog opens — no options to choose. Your BROWSER may show its own Save dialog (Chrome/Edge, pre-named chip-demo.cif, letting you pick the folder) or drop the file straight into your Downloads folder (Firefox/Safari), the same split as step 1's Save As. A toast confirms Exported chip-demo.cif either way, and a second one lists what CIF cannot carry (magnified references are flattened, and text keeps only its string); it stays until you close it, and its Details button shows the full list. You'll need this file again in step 15 — remember which one you got. To peek inside, open the downloaded file in your plain-text editor. CIF is genuinely plain text: the file opens with a header comment reading exactly (CIF written by Glyph);, then your two layers as L1D0_LAYER1/L2D0_LAYER2 (the layer and datatype, then the name the way KLayout's own CIF writer spells it: upper case, spaces dropped), each followed by a (CleWin: …) comment carrying the name as typed and the colour, then the hierarchy preserved as real symbol calls — TOP calls PAD twice, it isn't flattened into loose polygons.

    A Glyph toast notification reading Exported chip-demo.cif with a green checkmark icon.
  10. Export OASIS… Same flyout, same one-click write, same Chrome/Edge-native-dialog-vs-Firefox/Safari-Downloads-folder split as the CIF export above. The toast reads Exported chip-demo.oas. OASIS (SEMI P39) is a compact binary format — the file starts with the 13-byte magic every OASIS reader checks for: the 11-character token %SEMI-OASIS followed by a CRLF (\r\n, the remaining 2 bytes). It's built for the huge cell counts a modern mask can have.

    A Glyph toast notification reading Exported chip-demo.oas with a green checkmark icon.
  11. Export DXF… Same download behavior again. The toast reads Exported chip-demo.dxf. It's an AutoCAD R2000 drawing, 1 drawing unit = 1 nanometre, with each Glyph cell becoming a DXF block — useful the moment someone on the team is working in mechanical CAD rather than a mask editor.

    A Glyph toast notification with a green checkmark icon reading Exported chip-demo.dxf — 1 drawing unit = 1 µm (your display unit).
  12. A layer map lives somewhere else — File → Layer setup. A layer's NAME, colour and fill pattern are presentation, not geometry, so exporting that palette is a separate flyout from the geometry formats above: Save layer setup…, Load layer setup…, then Import foundry layer map…, Export layer map (.lyp)…, Export layer map (.csv)….

    Glyph's File menu Layer setup flyout listing Save layer setup, Load layer setup, then below a divider Import foundry layer map, Export layer map (.lyp) and Export layer map (.csv).
  13. Export layer map (.lyp)… Click it. Same download behavior as every export above, and a toast confirms Exported chip-demo.lyp — a KLayout layer-properties file. That file carries your original layer names and colours in a form OTHER TOOLS read, in KLayout's own portable convention. The geometry formats above carry names too, each in its own way (CIF in the layer token, OASIS in LAYERNAME records, DXF in the layer name), but CIF's colours ride only in comment records other tools ignore (see step 16), and GDSII itself keeps neither. Open the downloaded .lyp in your plain-text editor and you'll find <fill-color>#EE7733</fill-color> for Layer 1 and <fill-color>#0077BB</fill-color> for Layer 2 — the same two hex values Glyph's default palette assigned when you created those layers. Load it back with File → Layer setup → Load layer setup… (or KLayout's own "Load Layer Properties") on the other end.

    A Glyph toast notification reading Exported chip-demo.lyp with a green checkmark icon.
  14. The honesty step: Ctrl+S still only ever writes GDS. Press it (or click the Save button). Because step 1 already saved this document as chip-demo.gds, Chrome and Edge now hold a handle to that exact file: Ctrl+S there writes straight back into it, and the toast reads Saved chip-demo.gds — no "as", because it's the same file rather than a new one. Firefox and Safari can't hold that kind of handle, so there Ctrl+S repeats the full Save-as download every time, and the toast reads Saved as chip-demo.gds instead — which is what the screenshot below shows. Either way, the last four exports wrote CIF/OASIS/DXF/.lyp, and none of that changes what Ctrl+S writes: only plain GDSII. Glyph deliberately never lets Ctrl+S bind to one of those other formats: CIF flattens magnified references and strokes paths, DXF has no datatype field, so Glyph folds the pair into each layer's name, OASIS drops bitmaps and construction shapes and squares off a round GDS path — each is lossy in a specific, documented way, so silently overwriting one on every keystroke would quietly throw away information your working document still has. Your master file stays GDS; every format above is something you generate FROM it, on purpose, each time.

    A Glyph toast notification with a green checkmark icon reading Saved as chip-demo.gds to your browser's downloads, with a Details button that shows the SHA-256 checksum of the written bytes.
  15. Prove the round trip — open the CIF back up. Click the + to start a new blank tab. This matters because Open doesn't create a tab of its own — it loads into whichever tab is currently active — so without clicking + first, Open would overwrite chip-demo.gds right there in its own tab. With the new blank tab active, click Open and pick the chip-demo.cif you exported in step 9 (wherever your browser's Save dialog or Downloads folder put it). It loads into that new tab, which renames itself to chip-demo.cif the moment the file is parsed — so you end up with exactly two tabs, chip-demo.gds and chip-demo.cif, never a stray leftover Untitled.gds. The Cells panel confirms the hierarchy survived: TOP still holds PAD nested underneath it, used twice, exactly as it was before you ever wrote a CIF byte.

    The reopened chip-demo.cif as the active tab (its name cut short in this narrow window, with arrows to step between the two open tabs); the Cells panel showing TOP expanded with PAD nested underneath, and the canvas showing the same two hatched square pads in the same orange and blue — the colours read back from the CIF file itself: Glyph writes each layer's colour into the CIF as an inert (CleWin: …) comment record and its own reader restores it; other CIF tools simply ignore those comments.View full image
  16. Both layers came back too — names and all. Switch to the Layers tab: two layers, still 1/0 and 2/0, and still named Layer 1 and Layer 2. The name rode in the layer token itself (L1D0_LAYER1, the form KLayout's own CIF writer uses), and Glyph's reader takes the exact spelling back from the (CleWin: …) comment beside it, so Layer 1 does not come back as LAYER1. A layer that never had a name is written as the bare L1D0 and reads back as Layer 1. The small shape count beside each row reads 0, with a dim ↳ — that count is per the ACTIVE cell, and you're looking at it while TOP is active, which holds no shapes of its own, only the two PAD references; hover it and it says the shapes are in other cells. Step into PAD and each row reads 1, the one square on that layer. The canvas (previous screenshot) shows the colours came back too, the SAME orange and blue as before the round trip — and that is not a default-palette coincidence: since v0.107.0 Glyph writes each layer's fill/edge colour into the CIF as an inert (CleWin: …) comment record, and its own reader restores it on reopen. The catch is the audience: those comment records are Glyph's (and CleWin's) convention — KLayout and most other CIF tools ignore them, so the colour and the exact spelling survive a Glyph→Glyph round trip, while KLayout keeps only the token (it reads L1D0_LAYER1 as layer 1/0 named LAYER1). The .lyp from step 13 remains the portable way to hand names AND colours to another tool.

    The Layers tab of the reopened CIF document showing two rows named Layer 1 and Layer 2 on layer numbers 1 slash 0 and 2 slash 0, with orange and blue colour swatches (restored from the CIF's own (CleWin: …) comment records — a Glyph/CleWin convention other tools ignore), both visible and unlocked, each with a shape count of zero and a small arrow because TOP itself holds no shapes of its own.

What you built

A two-cell design — a PAD cell with a 20 µm pad on Layer 1 and an 8 µm alignment square on Layer 2, placed twice in TOP — drawn from a blank document, then sent out to five files: a CIF, an OASIS and a DXF version of the same layout, a KLayout .lyp layer map carrying the names and colours in a form other tools actually read, and a confirmation that plain Ctrl+S never drifts off GDS no matter what you've exported in between. You also proved the CIF round trip yourself — reopened it in a fresh tab and watched the hierarchy, the layer numbers and the layer names come back — the names ride in the CIF layer token, which other CIF tools read too, and the colours in Glyph's own CIF comment records, a convention only Glyph and CleWin honour.

The pattern generalises: pick the format your teammate or tool actually reads, export it from File → Export, and keep treating the .gds your Ctrl+S keeps writing as the one file you never have to re-derive anything from.

Next steps

Open and save GDS files covers the full save/export picture, including what a plain GDS round trip preserves that these other formats don't. Layers covers the palette this guide split off into its own .lyp file. For the two comparisons this guide only touched in passing, see the reference pages GDS vs OASIS and DXF vs GDS. Cells and hierarchy explains what "flattening" a reference means for the formats that do it. Then open the editor and export the design you actually need to hand off.

Updated 2026-08-28

Open Glyph — free, no install Your files never leave your computer.
Open Glyph →