Skip to content

Commit d1d4a86

Browse files
authored
Make FontResolver.GetFont() method available to be overriden
I have a situation when all installed system fonts needs to be supported along with 1 custom icon font located in the program resources. At the moment, I have to copy-paste the entire FontResolver.cs file, because GetFont() method can't be overriden (as ResolveTypeface does)
1 parent 051c73f commit d1d4a86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PdfSharpCore/Utils/FontResolver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ private static FontFamilyModel DeserializeFontFamily(string fontFamilyName, IEnu
153153
return font;
154154
}
155155

156-
public byte[] GetFont(string faceFileName)
156+
public virtual byte[] GetFont(string faceFileName)
157157
{
158158
using (System.IO.MemoryStream ms = new System.IO.MemoryStream())
159159
{

0 commit comments

Comments
 (0)