소스 검색

Increase font size, center text

David 4 년 전
부모
커밋
d740e7aee6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      Jellyfin.Drawing.Skia/StripCollageBuilder.cs

+ 2 - 2
Jellyfin.Drawing.Skia/StripCollageBuilder.cs

@@ -123,12 +123,12 @@ namespace Jellyfin.Drawing.Skia
             {
                 Color = SKColors.White,
                 Style = SKPaintStyle.Fill,
-                TextSize = 56,
+                TextSize = 112,
                 TextAlign = SKTextAlign.Center,
                 Typeface = SKTypeface.FromFamilyName("sans-serif", SKFontStyleWeight.Bold, SKFontStyleWidth.Normal, SKFontStyleSlant.Upright),
                 IsAntialias = true
             };
-            canvas.DrawText(libraryName, width / 2f, height / 2f, textPaint);
+            canvas.DrawText(libraryName, width / 2f, (height / 2f) + (textPaint.FontMetrics.XHeight / 2), textPaint);
 
             return bitmap;
         }