Next we create an ABCpdf Doc object and give it some basic
settings. Although we could pass our styled text directly to the
AddTextStyled function, we can take more control over the way that
fonts are added to the PDF if we specify font IDs.
using var doc = new Doc();
doc.FontSize = 72;
doc.Rect.Inset(10, 10);
doc.FrameRect();
int font1 = doc.EmbedFont("Verdana", LanguageType.Latin, false, true);
int font2 = doc.EmbedFont("Verdana Bold", LanguageType.Latin, false, true);
Using doc As New Doc()
doc.FontSize = 72
doc.Rect.Inset(10, 10)
doc.FrameRect()
Dim theFont1 As Integer = doc.EmbedFont("Verdana", LanguageType.Latin, False, True)
Dim theFont2 As Integer = doc.EmbedFont("Verdana Bold", LanguageType.Latin, False, True)