Converting text to SVG

<< Click to Display Table of Contents >>

Navigation:  Font engine >

Converting text to SVG

Sample code

 

   Font := TOTFFont.Create;
   try
     Font.LoadfromFile('MyFont.ttf');
     Font.CreateLayout(Text, 40, L);
     Font.PrepareLayout(L);
     SVG := L.AsSVG('', 'fill="blue" stroke="green"');
  finally
    Font.Free
  end;