Skip to content

Commit

Permalink
fix: Replace hard coded font family with const value in addFrameLabel…
Browse files Browse the repository at this point in the history
…sAsTextElements (excalidraw#7269)
  • Loading branch information
zsviczian committed Nov 11, 2023
1 parent 02cc844 commit af6b81d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/scene/export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { distance, getFontString } from "../utils";
import { AppState, BinaryFiles } from "../types";
import {
DEFAULT_EXPORT_PADDING,
FONT_FAMILY,
FRAME_STYLE,
SVG_NS,
THEME_FILTER,
Expand Down Expand Up @@ -105,7 +106,7 @@ const addFrameLabelsAsTextElements = (
let textElement: Mutable<ExcalidrawTextElement> = newTextElement({
x: element.x,
y: element.y - FRAME_STYLE.nameOffsetY,
fontFamily: 4,
fontFamily: FONT_FAMILY.Assistant,
fontSize: FRAME_STYLE.nameFontSize,
lineHeight:
FRAME_STYLE.nameLineHeight as ExcalidrawTextElement["lineHeight"],
Expand Down

0 comments on commit af6b81d

Please sign in to comment.