[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] How to get the position of a glyph without rendering it
From: |
Albert Astals Cid |
Subject: |
Re: [ft-devel] How to get the position of a glyph without rendering it |
Date: |
Sat, 11 Dec 2010 19:04:58 +0000 |
User-agent: |
KMail/1.13.5 (Linux/2.6.35-23-generic; KDE/4.5.1; x86_64; ; ) |
A Dijous, 9 de desembre de 2010, address@hidden va escriure:
> Dear Albert,
>
> Again I'm quite sorry for lated response about my homework.
>
> I did a small experiment to calculate the 'transformed'
> metric before invoking FT_Render_Glyph(), and the result
> was similar to the metric calculated by FT_Render_Glyph().
>
> The modification to your sample code is like this.
> x3, y3, w3, h3 are calculated before FT_Render_Glyph(),
> by using transformed outline. The calculation is roughly
> copied from the internal function ft_smooth_render_generic().
> The result is almost same with the metric calculated by
> FT_Render_Glyph(). Is this what you wanted to do?
That's great thanks!
Albert