On Wed, 5 Oct 2011, David Emerson wrote:
On Tue 4 Oct 2011, michael.vancann...@wisa.be wrote:
If you need some UTF8 extensions to the freetype unit, feel free to make
some suggestions, and we'll see what we can do.
When the unit was made, unicode support was a thing of the distant future.
(a future which of course crept up on us faster than we imagined)
attached is a patch, which (if applied correctly...) seems to work, yay! Here is
a picture:
http://david9.freepgs.com/i/spline-unicode-text.png
I copied a few UTF8 string functions from the LCLProc unit, so that is kind of
sloppy but there it is. I'm not sure if analogs exist within fpc.
Surprisingly little needed to be changed!
Yes, but the problem with this is that it only works with UTF-8 now.
So I would have preferred it if you had created an overloaded or even
differently named version of the existing functions, and left the existing
functions intact. The way it is now, we'd force everyone to use UTF-8.
I'll see if I can modify the patch.
Michael.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal