Function holoscan::viz::SetFont

Holoscan v0.6
void holoscan::viz::SetFont(const char *path, float size_in_pixels)

Set the font used to render text, do this before calling viz::Init().

The font is converted to bitmaps, these bitmaps are scaled to the final size when rendering.

  • path – path to TTF font file

  • size_in_pixels – size of the font bitmaps

© Copyright 2022-2023, NVIDIA. Last updated on Feb 9, 2024.