[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] how to get text width and height in libfreetype
From: |
Lawrence D'Oliveiro |
Subject: |
Re: [ft] how to get text width and height in libfreetype |
Date: |
Wed, 27 Apr 2016 20:08:10 +1200 |
On Wed, 27 Apr 2016 15:13:09 +0800 (CST), qw wrote:
> Does libfreetype have some interface function to fetch the two value
> for some input text?
FreeType doesn’t do text rendering, only rendering of individual
glyphs. The metrics of the last loaded glyph are explained here
<http://freetype.org/freetype2/docs/reference/ft2-base_interface.html#FT_Glyph_Metrics>.