NVIDIA IndeX API nvidia_logo_transpbg.gif Up
ifont.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright 2023 NVIDIA Corporation. All rights reserved.
3 *****************************************************************************/
6
7#ifndef NVIDIA_INDEX_IFONT_H
8#define NVIDIA_INDEX_IFONT_H
9
10#include <mi/base/interface_declare.h>
11#include <mi/dice.h>
12
13#include <nv/index/iattribute.h>
14
15namespace nv
16{
17namespace index
18{
19
20
26class IFont :
27 public mi::base::Interface_declare<0xde2a47e9,0xa0b3,0x4b47,0xb2,0xc6,0x8f,0x22,0x6c,0x36,0x02,0x61,
28 nv::index::IAttribute>
29{
30public:
38 virtual bool set_file_name(const char* font_file_name) = 0;
39
44 virtual const char* get_file_name() const = 0;
45
54 virtual bool set_font_resolution(mi::Float32 resolution) = 0;
55
62 virtual mi::Float32 get_font_resolution() const = 0;
63};
64
65}} // namespace index / nv
66
67#endif // NVIDIA_INDEX_IFONT_H
A font attribute describes the appearance of a label in the scene description.
Definition: ifont.h:29
virtual mi::Float32 get_font_resolution() const =0
Get the resolution of the font.
virtual bool set_font_resolution(mi::Float32 resolution)=0
Set the font resolution.
virtual bool set_file_name(const char *font_file_name)=0
Set the font file name.
virtual const char * get_file_name() const =0
Returns the font file name.
Base class representing attributes that can be defined in a scene description.
Common namespace for all NVIDIA APIs.
Definition: iindex.h:349