Skip to content

Commit 8bd6b06

Browse files
committed
♻️ Rename module font-loader to font-store
Follow-up to merging `FontLoader` into `FontStore` classes.
1 parent a078236 commit 8bd6b06

File tree

10 files changed

+9
-9
lines changed

10 files changed

+9
-9
lines changed

src/api/make-pdf.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { FontStore } from '../font-loader.ts';
1+
import { FontStore } from '../font-store.ts';
22
import { ImageLoader, ImageStore } from '../image-loader.ts';
33
import { layoutPages } from '../layout/layout.ts';
44
import { readDocumentDefinition } from '../read-document.ts';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fontkit from '@pdf-lib/fontkit';
22
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
33

4-
import { FontStore } from './font-loader.ts';
4+
import { FontStore } from './font-store.ts';
55
import type { FontDef } from './fonts.ts';
66
import { mkData } from './test/test-utils.ts';
77

File renamed without changes.

src/layout/layout-columns.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { beforeEach, describe, expect, it } from 'vitest';
22

33
import type { Box } from '../box.ts';
4-
import { FontStore } from '../font-loader.ts';
4+
import { FontStore } from '../font-store.ts';
55
import type { MakerCtx } from '../maker-ctx.ts';
66
import type { Block } from '../read-block.ts';
77
import { fakeFont, span } from '../test/test-utils.ts';

src/layout/layout-rows.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { beforeEach, describe, expect, it } from 'vitest';
22

33
import type { Box } from '../box.ts';
4-
import { FontStore } from '../font-loader.ts';
4+
import { FontStore } from '../font-store.ts';
55
import type { Frame } from '../frame.ts';
66
import type { MakerCtx } from '../maker-ctx.ts';
77
import type { Block } from '../read-block.ts';

src/layout/layout-text.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { rgb } from 'pdf-lib';
22
import { beforeEach, describe, expect, it } from 'vitest';
33

44
import type { Box } from '../box.ts';
5-
import { FontStore } from '../font-loader.ts';
5+
import { FontStore } from '../font-store.ts';
66
import type { Font, FontSelector } from '../fonts.ts';
77
import type { MakerCtx } from '../maker-ctx.ts';
88
import { extractTextRows, fakeFont, range, span } from '../test/test-utils.ts';

src/layout/layout.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { beforeEach, describe, expect, it } from 'vitest';
22

33
import { paperSizes } from '../api/sizes.ts';
44
import type { Box } from '../box.ts';
5-
import { FontStore } from '../font-loader.ts';
5+
import { FontStore } from '../font-store.ts';
66
import type { MakerCtx } from '../maker-ctx.ts';
77
import type { Block, TextAttrs, TextSpan } from '../read-block.ts';
88
import type { PageInfo } from '../read-document.ts';

src/maker-ctx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { FontStore } from './font-loader.ts';
1+
import type { FontStore } from './font-store.ts';
22
import type { ImageStore } from './image-loader.ts';
33

44
export type MakerCtx = {

src/text.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { rgb } from 'pdf-lib';
22
import { beforeEach, describe, expect, it } from 'vitest';
33

4-
import { FontStore } from './font-loader.ts';
4+
import { FontStore } from './font-store.ts';
55
import type { Font } from './fonts.ts';
66
import { fakeFont } from './test/test-utils.ts';
77
import type { TextSegment } from './text.ts';

src/text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { FontStyle, FontWeight } from './api/text.ts';
2-
import type { FontStore } from './font-loader.ts';
32
import { getTextHeight, getTextWidth } from './font-metrics.ts';
3+
import type { FontStore } from './font-store.ts';
44
import type { Font } from './fonts.ts';
55
import type { TextSpan } from './read-block.ts';
66
import type { Color } from './read-color.ts';

0 commit comments

Comments
 (0)