Skip to content

Commit db2c55e

Browse files
committed
Increase line-height for Comic Shanns to 1.25
1 parent 1c4e0c4 commit db2c55e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/excalidraw/element/textWysiwyg.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,7 @@ describe("textWysiwyg", () => {
13371337
expect(
13381338
(h.elements[1] as ExcalidrawTextElementWithContainer).fontSize,
13391339
).toEqual(36);
1340-
expect(getOriginalContainerHeightFromCache(rectangle.id)).toBe(97);
1340+
expect(getOriginalContainerHeightFromCache(rectangle.id)).toBe(100);
13411341
});
13421342

13431343
it("should update line height when font family updated", async () => {
@@ -1360,7 +1360,7 @@ describe("textWysiwyg", () => {
13601360
).toEqual(FONT_FAMILY["Comic Shanns"]);
13611361
expect(
13621362
(h.elements[1] as ExcalidrawTextElementWithContainer).lineHeight,
1363-
).toEqual(1.2);
1363+
).toEqual(1.25);
13641364

13651365
fireEvent.click(screen.getByTitle(/normal/i));
13661366
expect(

packages/excalidraw/fonts/metadata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const FONT_METADATA: Record<number, FontMetadata> = {
6262
unitsPerEm: 1000,
6363
ascender: 750,
6464
descender: -250,
65-
lineHeight: 1.2,
65+
lineHeight: 1.25,
6666
},
6767
icon: FontFamilyCodeIcon,
6868
},

0 commit comments

Comments
 (0)