Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinatzo committed May 19, 2024
1 parent a158ee2 commit 2ae4480
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export function registerFonts(
): void {
const resources = getResources(document);
if (resources.fonts) {
for (const [name, font] of Object.entries(resources.fonts)) {
for (const name of Object.keys(resources.fonts)) {
const font = resources.fonts[name];
// Required
registerFont(name, font.normal, name);
registerFont(name + "-Oblique", font.italic, name);
Expand Down

0 comments on commit 2ae4480

Please sign in to comment.