We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0fd47ef + faca6c9 commit ebf3e2cCopy full SHA for ebf3e2c
NetBarcode/Barcode.cs
@@ -739,7 +739,7 @@ private Font GetEffeciveFont()
739
740
var defaultFont = SystemFonts.Collection.Families.FirstOrDefault();
741
742
- if (defaultFont == null)
+ if (defaultFont == null || defaultFont.Name == null)
743
throw new Exception("Label font not specified and no installed fonts found.");
744
745
return _labelFont = SystemFonts.CreateFont(defaultFont.Name, 10, FontStyle.Bold);
0 commit comments