Jetson Inference
DNN Vision Library

TTF font rasterization and image overlay rendering using CUDA. More...

Classes

class  cudaFont
 TTF font rasterization and image overlay rendering using CUDA. More...
 

Functions

float adaptFontSize (uint32_t dimension)
 Determine an appropriate font size given a particular dimension to use (typically an image's width). More...
 

Detailed Description

TTF font rasterization and image overlay rendering using CUDA.

Function Documentation

◆ adaptFontSize()

float adaptFontSize ( uint32_t  dimension)

Determine an appropriate font size given a particular dimension to use (typically an image's width).

Then the font won't be radically unsized.

Parameters
dimensionThe dimension's size to fit against (i.e. image width)
Returns
a font size between 10 and 32 pixels tall.