freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] Calculating the height of the rectangle when selecting text whi


From: Kirk Wallace
Subject: Re: [ft] Calculating the height of the rectangle when selecting text while using Freetype
Date: Mon, 19 Jan 2015 07:49:00 -0800
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

On 01/19/2015 06:41 AM, Diederick Huijbers wrote:
Hi,

I'm using Freetype + Harfbuzz to create a text input field for an
OpenGL application and I'm trying to figure out what metrics I should
use to calculate the height of the rectangle you see when you select
text in a text input field.

I'm not sure if this helps, but this application looks at all the points in each character in a string and records the maximum and minimum values. Looking at the source (ttt.c) might shed some light on your problem.
http://timeguy.com/cradek/01276453959


--
Kirk Wallace
http://www.wallacecompany.com/machine_shop/
http://www.wallacecompany.com/E45/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]