NVIDIA Holoscan SDK v2.7.0
Holoscan v2.7.0

Function holoscan::viz::SetFont

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.

Parameters
  • path – path to TTF font file

  • size_in_pixels – size of the font bitmaps

Previous Function holoscan::viz::SetCursorPosCallback
Next Function holoscan::viz::SetFramebufferSizeCallback
© Copyright 2022-2024, NVIDIA. Last updated on Dec 2, 2024.