/// <summary>Creates an infinitext glyph from the path you've just made.</summary> public Glyph ToGlyph() { Glyph glyph = new Glyph(); glyph.FirstPathNode = Path.FirstPathNode; glyph.LatestPathNode = Path.LatestPathNode; glyph.PathNodeCount = Path.PathNodeCount; // Compute the meta: glyph.RecalculateMeta(); // Squish it to being at most 1 unit tall: if (glyph.Height > 1f) { glyph.Scale(1f / glyph.Height); } // Setup a default advance width: glyph.AdvanceWidth = glyph.Width; // Clear the path: Path.Clear(); return(glyph); }