[Lazarus] TFreeTypeFont Rotated Text

Alexander Klenin klenin at gmail.com
Sat May 28 13:30:56 CEST 2011


On Sat, May 28, 2011 at 03:57, Mattias Gaertner
<nc-gaertnma at netcologne.de> wrote:
> On Fri, 27 May 2011 21:37:21 -0300
> Leonardo M. Ramé <l.rame at griensu.com> wrote:
>
>> On 2011-05-28 00:20:18 +0200, Mattias Gaertner wrote:
>> > On Fri, 27 May 2011 18:06:25 -0400
>> > Alexander Klenin <klenin at gmail.com> wrote:
>> >
>> > > On Fri, May 27, 2011 at 09:09, Leonardo M. Ramé <l.rame at griensu.com> wrote:
>> > > > Alexander, I tried with DejaVuSans and got the same result.
>> > >
>> > > Too bad. I have only tested on Windows -- no idea why FreeType does not work
>> > > on other platforms.
>> >
>> > Read the fine manual:
>> >
>> > http://wiki.lazarus.freepascal.org/fcl-image#Drawing_text
>> >
>>
>> FreeType works, what does not work is the rotation.
>
> Where does TAChart with FreeType call InitEngine?

The call is in in line 146 of ftfont.pp
On Windows, I verified that it is is called before other
low-level freetype functions.
Maybe it is not so on other platforms -- I think
the call should then be removed from ftfont unit.

-- 
Alexander S. Klenin




More information about the Lazarus mailing list