freetype
[Top][All Lists]
Advanced

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

[ft] how to get text width and height in libfreetype


From: qw
Subject: [ft] how to get text width and height in libfreetype
Date: Wed, 27 Apr 2016 15:13:09 +0800 (CST)

Hi,
ffmpeg adopts libfreetype as 'drawtext filter'.
 
In ffmpeg, 'drawtext filter' is used to put some utf-8 format text over video stream. I want to get two values, i.e. text_h and text_w, which will be used in c/c++ functions.
http://ffmpeg.org/ffmpeg-filters.html#drawtext-1
text_h, th

the height of the rendered text

text_w, tw

the width of the rendered text

 
How to get those two values? Does libfreetype have some interface function to fetch the two value for some input text?
Thanks!
Andrew
 


 


reply via email to

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