Log tweaks

This commit is contained in:
2026-01-03 22:12:41 +09:00
parent 7fcfe6282e
commit 12cf5ef094
+3 -3
View File
@@ -67,7 +67,7 @@ class MainViewModel : BaseViewModel, IFontResolver
public byte[]? GetFont(string faceName) public byte[]? GetFont(string faceName)
{ {
LogInfo(string.Format("Getting font {0}", faceName)); LogInfo(string.Format("Loading font {0}", faceName));
if (faceName == "Noto Sans JP") if (faceName == "Noto Sans JP")
{ {
return File.ReadAllBytes(Path.Combine(_baseDir, "Assets/Fonts/Noto_Sans_JP/static/NotoSansJP-Regular.ttf")); return File.ReadAllBytes(Path.Combine(_baseDir, "Assets/Fonts/Noto_Sans_JP/static/NotoSansJP-Regular.ttf"));
@@ -81,7 +81,7 @@ class MainViewModel : BaseViewModel, IFontResolver
public FontResolverInfo? ResolveTypeface(string familyName, bool bold, bool italic) public FontResolverInfo? ResolveTypeface(string familyName, bool bold, bool italic)
{ {
LogInfo(string.Format("Resolving familyname {0}", familyName)); // LogInfo(string.Format("Resolving font name {0}", familyName));
if (familyName == "Noto Sans JP") if (familyName == "Noto Sans JP")
{ {
if (bold) if (bold)
@@ -197,7 +197,7 @@ class MainViewModel : BaseViewModel, IFontResolver
string filename = Path.Join(folderName, outputFileName); string filename = Path.Join(folderName, outputFileName);
LogInfo("Saving document to disk..."); LogInfo("Saving document to disk...");
pdfRenderer.PdfDocument.Save(filename); pdfRenderer.PdfDocument.Save(filename);
LogInfo("PDF output to: " + filename); LogInfo("Saved PDF output to: " + filename);
IsCreatingPDF = false; IsCreatingPDF = false;
return; return;
} }