Skip to content

Commit cf72e4e

Browse files
committed
fix: scape font
1 parent 9db906b commit cf72e4e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/AwesomeGithubStats.Api/Controllers/UserStatsController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using Microsoft.AspNetCore.Mvc;
77
using Microsoft.Extensions.Logging;
88
using System.IO;
9+
using System.Text;
910
using System.Threading.Tasks;
1011

1112
namespace AwesomeGithubStats.Api.Controllers

src/AwesomeGithubStats.Core/Models/Svgs/UserStatsCard.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public Stream Svg(string file, UserRank rank, CardStyles cardStyles, CardTransla
7373
var fontUrlName = fontName.Replace(" ", "+");
7474

7575
// Construct the @import URL for Google Fonts
76-
var fontCss = $"@import url('https://fonts.googleapis.com/css2?family={fontUrlName}:wght@400;500;600;700;800;900&display=swap');";
76+
var fontCss = $"@import url('https://fonts.googleapis.com/css2?family={fontUrlName}:wght@400;500;600;700;800;900&display=swap');";
7777

7878
var fontFamily = $"'{fontName}', serif";
7979

0 commit comments

Comments
 (0)