/usr/include/oce/Font_FontMgr.hxx is in liboce-visualization-dev 0.15-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | // This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _Font_FontMgr_HeaderFile
#define _Font_FontMgr_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_Font_FontMgr_HeaderFile
#include <Handle_Font_FontMgr.hxx>
#endif
#ifndef _Font_NListOfSystemFont_HeaderFile
#include <Font_NListOfSystemFont.hxx>
#endif
#ifndef _MMgt_TShared_HeaderFile
#include <MMgt_TShared.hxx>
#endif
#ifndef _Handle_Font_SystemFont_HeaderFile
#include <Handle_Font_SystemFont.hxx>
#endif
#ifndef _Handle_TCollection_HAsciiString_HeaderFile
#include <Handle_TCollection_HAsciiString.hxx>
#endif
#ifndef _Font_FontAspect_HeaderFile
#include <Font_FontAspect.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Standard_CString_HeaderFile
#include <Standard_CString.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
class TColStd_SequenceOfHAsciiString;
class Font_SystemFont;
class TCollection_HAsciiString;
//! Collects and provides information about available fonts in system. <br>
class Font_FontMgr : public MMgt_TShared {
public:
Standard_EXPORT static Handle_Font_FontMgr GetInstance() ;
Standard_EXPORT const Font_NListOfSystemFont& GetAvailableFonts() const;
//! Returns sequence of available fonts names <br>
Standard_EXPORT void GetAvailableFontsNames(TColStd_SequenceOfHAsciiString& theFontsNames) const;
//! Returns font that match given parameters. <br>
//! If theFontName is empty string returned font can have any FontName. <br>
//! If theFontAspect is Font_FA_Undefined returned font can have any FontAspect. <br>
//! If theFontSize is "-1" returned font can have any FontSize. <br>
Standard_EXPORT Handle_Font_SystemFont GetFont(const Handle(TCollection_HAsciiString)& theFontName,const Font_FontAspect theFontAspect,const Standard_Integer theFontSize) const;
//! Tries to find font by given parameters. <br>
//! If the specified font is not found tries to use font names mapping. <br>
//! If the requested family name not found -> search for any font family <br>
//! with given aspect and height. If the font is still not found, returns <br>
//! any font available in the system. Returns NULL in case when the fonts <br>
//! are not found in the system. <br>
Standard_EXPORT Handle_Font_SystemFont FindFont(const Handle(TCollection_HAsciiString)& theFontName,const Font_FontAspect theFontAspect,const Standard_Integer theFontSize) const;
//! Read font file and retrieve information from it. <br>
Standard_EXPORT Handle_Font_SystemFont CheckFont(const Standard_CString theFontPath) const;
//! Register new font. <br>
//! If there is existing entity with the same name and properties but different path <br>
//! then font will will be overridden or ignored depending on theToOverride flag. <br>
Standard_EXPORT Standard_Boolean RegisterFont(const Handle(Font_SystemFont)& theFont,const Standard_Boolean theToOverride) ;
DEFINE_STANDARD_RTTI(Font_FontMgr)
protected:
private:
//! Creates empty font object <br>
Standard_EXPORT Font_FontMgr();
//! Collects available fonts paths. <br>
Standard_EXPORT void InitFontDataBase() ;
Font_NListOfSystemFont myListOfFonts;
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|