This example shows how you might embed and use a custom font.
For an example showing how to create the emojifont.pdf document see
the CustomFont constructor.
using var icons = new Doc();
icons.Read("../Rez/emojifont.pdf");
var emojis = new CustomFont(icons, 'a');
using var doc = new Doc();
doc.Page = doc.AddPage();
doc.FontSize = 42;
doc.Rect.Inset(72, 72);
int id = emojis.Embed(doc, true, 0.1);
doc.AddTextStyled($"Hello World: <stylerun pid={id}>abcdef</stylerun>...");
doc.FrameRect();
doc.Save("emojis.pdf");