[Libav-user] what is the relationship between fontsize and image resolution in drawtext filter

Nicolas George george at nsup.org
Tue Apr 26 13:56:51 CEST 2016


L'octidi 8 floréal, an CCXXIV, qw a écrit :
> libfreetype is used to draw text on video stream.

Yes, I know.

> http://ffmpeg.org/ffmpeg-filters.html#drawtext-1
> There are 3 important syntaxes in the filter of drawtext.

"syntaxes"? These are variables that you can use to compute the coordinates of
the text.

> However, text_h and text_w can only be used in filtergraph description. I
> want to know the height and width of the rendered text that corresponds to
> some fondsize, such as fondsize=20. It means, how to calculate the pixel
> number of rendered text in width and height?

I have already answered that question.

> At 2016-04-26 17:20:13, "Nicolas George" <george at nsup.org> wrote:

Do not top-post on this list; if you do not know what it means, look it up.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160426/9f49b845/attachment.sig>


More information about the Libav-user mailing list