Skip to content

Commit

Permalink
Merge pull request #504 from PrefectHQ/nicholas/chore/update-font-ref…
Browse files Browse the repository at this point in the history
…-2024-05-22

Chore: Use fontface ref from prefect-design instead of hard coding
  • Loading branch information
znicholasbrown authored May 22, 2024
2 parents e770a14 + 3baf429 commit 4a7f364
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 25 deletions.
46 changes: 23 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"vue-tsc": "2.0.7"
},
"peerDependencies": {
"@prefecthq/prefect-design": "^2.10.8",
"@prefecthq/prefect-design": "^2.10.10",
"@prefecthq/vue-compositions": "^1.6.7",
"vue": "^3.2.45",
"vue-router": "^4.0.12"
Expand Down
3 changes: 2 additions & 1 deletion src/objects/fonts.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { sansFontFamily } from '@prefecthq/prefect-design/src/tailwind.config'
import FontFaceObserver from 'fontfaceobserver'
import { BitmapFont, BitmapText, IBitmapTextStyle } from 'pixi.js'
import { DEFAULT_TEXT_RESOLUTION } from '@/consts'
Expand All @@ -12,7 +13,7 @@ type BitmapFontStyle = {

const fontStyles = {
inter: {
fontFamily: 'Inter',
fontFamily: sansFontFamily,
fontSize: 16,
lineHeight: 20,
fill: 0xFFFFFF,
Expand Down

0 comments on commit 4a7f364

Please sign in to comment.