Skip to content

Commit

Permalink
♻️ Rename module font-loader to font-store
Browse files Browse the repository at this point in the history
Follow-up to merging `FontLoader` into `FontStore` classes.
  • Loading branch information
ralfstx committed Oct 12, 2024
1 parent 9157a51 commit 09da34f
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/api/make-pdf.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { FontStore } from '../font-loader.ts';
import { FontStore } from '../font-store.ts';
import { ImageLoader, ImageStore } from '../image-loader.ts';
import { layoutPages } from '../layout/layout.ts';
import { readDocumentDefinition } from '../read-document.ts';
Expand Down
2 changes: 1 addition & 1 deletion src/font-loader.test.ts → src/font-store.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fontkit from '@pdf-lib/fontkit';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';

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

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/layout/layout-columns.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { beforeEach, describe, expect, it } from 'vitest';

import type { Box } from '../box.ts';
import { FontStore } from '../font-loader.ts';
import { FontStore } from '../font-store.ts';
import type { MakerCtx } from '../maker-ctx.ts';
import type { Block } from '../read-block.ts';
import { fakeFont, span } from '../test/test-utils.ts';
Expand Down
2 changes: 1 addition & 1 deletion src/layout/layout-rows.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { beforeEach, describe, expect, it } from 'vitest';

import type { Box } from '../box.ts';
import { FontStore } from '../font-loader.ts';
import { FontStore } from '../font-store.ts';
import type { Frame } from '../frame.ts';
import type { MakerCtx } from '../maker-ctx.ts';
import type { Block } from '../read-block.ts';
Expand Down
2 changes: 1 addition & 1 deletion src/layout/layout-text.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { rgb } from 'pdf-lib';
import { beforeEach, describe, expect, it } from 'vitest';

import type { Box } from '../box.ts';
import { FontStore } from '../font-loader.ts';
import { FontStore } from '../font-store.ts';
import type { Font, FontSelector } from '../fonts.ts';
import type { MakerCtx } from '../maker-ctx.ts';
import { extractTextRows, fakeFont, range, span } from '../test/test-utils.ts';
Expand Down
2 changes: 1 addition & 1 deletion src/layout/layout.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { beforeEach, describe, expect, it } from 'vitest';

import { paperSizes } from '../api/sizes.ts';
import type { Box } from '../box.ts';
import { FontStore } from '../font-loader.ts';
import { FontStore } from '../font-store.ts';
import type { MakerCtx } from '../maker-ctx.ts';
import type { Block, TextAttrs, TextSpan } from '../read-block.ts';
import type { PageInfo } from '../read-document.ts';
Expand Down
2 changes: 1 addition & 1 deletion src/maker-ctx.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FontStore } from './font-loader.ts';
import type { FontStore } from './font-store.ts';
import type { ImageStore } from './image-loader.ts';

export type MakerCtx = {
Expand Down
2 changes: 1 addition & 1 deletion src/text.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { rgb } from 'pdf-lib';
import { beforeEach, describe, expect, it } from 'vitest';

import { FontStore } from './font-loader.ts';
import { FontStore } from './font-store.ts';
import type { Font } from './fonts.ts';
import { fakeFont } from './test/test-utils.ts';
import type { TextSegment } from './text.ts';
Expand Down
2 changes: 1 addition & 1 deletion src/text.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { FontStyle, FontWeight } from './api/text.ts';
import type { FontStore } from './font-loader.ts';
import { getTextHeight, getTextWidth } from './font-metrics.ts';
import type { FontStore } from './font-store.ts';
import type { Font } from './fonts.ts';
import type { TextSpan } from './read-block.ts';
import type { Color } from './read-color.ts';
Expand Down

0 comments on commit 09da34f

Please sign in to comment.