Make adding text to the document easier
authorSam Moore <[email protected]>
Tue, 12 Aug 2014 06:36:47 +0000 (14:36 +0800)
committerSam Moore <[email protected]>
Tue, 12 Aug 2014 06:36:47 +0000 (14:36 +0800)
commit1ba642be477818ba73be34b5e96484b5e91d8c66
treeb6b6419e3ac09da2fd94981d93c52b8c8b271b6d
parent208cee1f6967db42329a3e665401ef51b3f6d9ff
Make adding text to the document easier

tl;dr Use Document::AddText() to put text in places
Pass the font file in the Document constructor or call Document::SetFont() to change fonts

ts;iwtrm I am not freeing the font data buffer because I strongly suspect we will want to keep it.

You might be able to have arbitrary precision text only documents really easily if you
just re-add the glyphs at a new scale. That might be better than reparenting each individual bezier.

We could add a Document::Finalize() to free memory like the font data
which is used in creating the document but not needed afterwards.

But I want to be able to interactively add text anyway, so there doesn't seem
to be much point at the moment.
src/document.cpp
src/document.h
src/main.cpp

UCC git Repository :: git.ucc.asn.au