You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using a font type that should be able to display a j however it shows a ?box? instead, I've made this small application to replicate the issue, could you look into this?
#:sdk Microsoft.NET.Sdk
#:package Synercoding.FileFormats.Pdf@1.0.0-alpha022
using Synercoding.FileFormats.Pdf;usingSynercoding.FileFormats.Pdf.Content.Text.Fonts;usingSynercoding.Primitives;usingSynercoding.Primitives.Extensions;varfontPath=Path.Combine(Directory.GetCurrentDirectory(),"source-sans-pro.regular.ttf");conststringFONT_URL="https://st.1001fonts.net/download/font/source-sans-pro.regular.ttf";if(!File.Exists(fontPath)){usingvarhttpClient=newHttpClient();varfontBytes=awaithttpClient.GetByteArrayAsync(FONT_URL);awaitFile.WriteAllBytesAsync(fontPath,fontBytes);}varpdfPath=Path.Combine(Directory.GetCurrentDirectory(),"test.pdf");File.Delete(pdfPath);varfont=Font.Load(fontPath);using(varfileStream=File.OpenWrite(pdfPath))using(varwriter=newPdfWriter(fileStream)){writer.AddPage(page =>{page.MediaBox=newSize(ValueCreator.Cm(5),ValueCreator.Cm(2)).AsRectangle();page.Content.AddText(textContext =>{textContext.SetFontAndSize(font,12);textContext.ShowText("▲ PJ1.1");});});}
Activity
Merge pull request #88 from synercoder/fixes/issue-87
Fixed #87.
synercoder commentedon Apr 23, 2026
New package version available:
https://github.com/synercoder/FileFormats.Pdf/releases/tag/v1.0.0-alpha023
https://www.nuget.org/packages/Synercoding.FileFormats.Pdf/1.0.0-alpha023