Skip to content

Commit

Permalink
fix: 解決字體抓不到的困擾
Browse files Browse the repository at this point in the history
  • Loading branch information
Kantai235 committed Aug 2, 2024
1 parent 74fcd23 commit 245060d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/Domains/Social/Services/Image/ImagesGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,12 @@ public function font(string $font): ImagesGenerator

/** 俐方體 11 號 */
case 'cubic-11':
$this->fontPath = public_path('fonts/Cubic_11_1.010_R.ttf');
$this->fontPath = public_path('fonts/Cubic_11.ttf');
break;

/** 粉圓體 */
case 'huninn':
$this->fontPath = public_path('fonts/jf-openhuninn-1.1.ttf');
$this->fontPath = public_path('fonts/jf-openhuninn.ttf');
break;

/** 未來熒黑 */
Expand Down
6 changes: 3 additions & 3 deletions resources/sass/frontend/base/_basic.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ body {
*/
@font-face {
font-family: "Cubic 11";
src: url("/fonts/Cubic_11_1.010_R.ttf");
src: url("/fonts/Cubic_11.ttf");
}

/**
Expand All @@ -80,15 +80,15 @@ body {
*/
@font-face {
font-family: "Huninn";
src: url("/fonts/jf-openhuninn-1.1.ttf");
src: url("/fonts/jf-openhuninn.ttf");
}

/**
* 未來熒黑 at:
* https://github.com/welai/glow-sans
*/
@font-face {
font-family: "Huninn";
font-family: "Glow Sans";
src: url("/fonts/GlowSansTC-Normal-Medium.ttf");
}

Expand Down

0 comments on commit 245060d

Please sign in to comment.