Skip to content

Commit

Permalink
feat: 修改加载oblique字体
Browse files Browse the repository at this point in the history
  • Loading branch information
xxss0903 committed Oct 11, 2024
1 parent bfdc91e commit 0b82c33
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/liteofd/ofdFont.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,14 @@ export const loadLocalDefaultFonts = async () => {
loadedFonts.set("Helvetica", true)
}
if(!loadedFonts.has("Helvetica-Oblique")) {
const fontPath = `assets/Helvetica-Oblique.ttf`;
const fontPath = `assets/Helvetica-Oblique.otf`;
await loadLocalDefaultFont("Helvetica-Oblique", fontPath)
loadedFonts.set("Helvetica-Oblique", true)
}
if(!loadedFonts.has("Helvetica-Bold-Oblique")) {
const fontPath = `assets/Helvetica-Bold-Oblique.ttf`;
await loadLocalDefaultFont("Helvetica-Bold-Oblique", fontPath)
loadedFonts.set("Helvetica-Bold-Oblique", true)
if(!loadedFonts.has("Helvetica-BoldOblique")) {
const fontPath = `assets/Helvetica-BoldOblique.ttf`;
await loadLocalDefaultFont("Helvetica-BoldOblique", fontPath)
loadedFonts.set("Helvetica-BoldOblique", true)
}
if(!loadedFonts.has("Times-Roman")) {
const fontPath = `assets/Times-Roman.otf`;
Expand Down

0 comments on commit 0b82c33

Please sign in to comment.