Skip to content

Commit

Permalink
font size can be specified in mm
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed May 15, 2024
1 parent 0907cca commit f5d991a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pcb/pcb_silkscreen_text.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { z } from "zod"
import { visible_layer } from "./properties/layer_ref"
import { point } from "src/common"
import { distance } from "src/units"

export const pcb_silkscreen_text = z
.object({
type: z.literal("pcb_silkscreen_text"),
font: z.literal("tscircuit2024").default("tscircuit2024"),
font_size: z.number().default(1),
font_size: distance.default("1mm"),
pcb_component_id: z.string(),
text: z.string(),
layer: visible_layer,
Expand Down

0 comments on commit f5d991a

Please sign in to comment.