mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-14 06:47:00 +10:00
fix: revert to default hyphenation method
This commit is contained in:
@@ -44,7 +44,6 @@ describe("registerFonts", () => {
|
||||
|
||||
it("registers CJK PDF fallbacks for normal and italic text styles", async () => {
|
||||
const registerSpy = vi.spyOn(Font, "register").mockImplementation(() => {});
|
||||
vi.spyOn(Font, "registerHyphenationCallback").mockImplementation(() => {});
|
||||
const cjkFallbackSource = getWebFontSource("Noto Serif SC", "400", false);
|
||||
const { registerFonts } = await import("./use-register-fonts");
|
||||
|
||||
@@ -72,7 +71,6 @@ describe("registerFonts", () => {
|
||||
|
||||
it("uses the full CJK font source for synthetic italic variants when the CJK font is primary", async () => {
|
||||
const registerSpy = vi.spyOn(Font, "register").mockImplementation(() => {});
|
||||
vi.spyOn(Font, "registerHyphenationCallback").mockImplementation(() => {});
|
||||
const cjkFallbackSource = getWebFontSource("Noto Serif SC", "400", false);
|
||||
const { registerFonts } = await import("./use-register-fonts");
|
||||
|
||||
|
||||
@@ -66,8 +66,6 @@ const resolvePdfTypography = (typography: Typography): Typography => {
|
||||
};
|
||||
|
||||
export const registerFonts = (typography: Typography): PdfTypography => {
|
||||
Font.registerHyphenationCallback((word) => [word]);
|
||||
|
||||
const pdfTypography = resolvePdfTypography(typography);
|
||||
const bodyFontFamily = pdfTypography.body.fontFamily;
|
||||
const headingFontFamily = pdfTypography.heading.fontFamily;
|
||||
|
||||
Reference in New Issue
Block a user