Skip to content

Commit

Permalink
fix: missing font once packaged with vite
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Oct 1, 2024
1 parent df35b3d commit c6f563d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ declare class FontFace {
load(): void
}

const LABEL_FONT_URL = 'url("/fonts/roboto-gh-pages/fonts/Light/Roboto-Light.woff")'
const LABEL_FONT_URL = `url("${new URL(
'../../../fonts/roboto-gh-pages/fonts/Light/Roboto-Light.woff2',
import.meta.url
)}")`
const LABEL_COLOR = 'rgb(80,80,80)'
const SHORT_LINE_GRID_COLOR = 'rgb(112,112,112)'
const LONG_LINE_GRID_COLOR = 'rgb(80,80,80)'
Expand Down

0 comments on commit c6f563d

Please sign in to comment.