2 #ifdef OSG_BUILD_ACTIVE
3 #include <OSGTextFaceFactory.h>
5 #include <OpenSG/OSGTextFaceFactory.h>
11 int main(int argc
, char *argv
[])
13 // Create a vector of strings.
14 std::vector
<std::string
> families
;
16 // Fill the vector with the names of all font families installed
18 OSG::TextFaceFactory::the()->getFontFamilies(families
);
20 // Iterate over the names
21 std::vector
<std::string
>::const_iterator it
;
22 for (it
= families
.begin(); it
!= families
.end(); ++it
)
23 std::cout
<< *it
<< std::endl
;