1 // Created on: 2013-01-28
2 // Created by: Kirill GAVRILOV
3 // Copyright (c) 2013-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _Font_FTLibrary_H__
17 #define _Font_FTLibrary_H__
19 #include <Standard_DefineHandle.hxx>
20 #include <Standard_Transient.hxx>
22 // inclusion template for FreeType
24 #include FT_FREETYPE_H
26 //! Wrapper over FT_Library. Provides access to FreeType library.
27 class Font_FTLibrary : public Standard_Transient
32 //! Initialize new FT_Library instance.
33 Standard_EXPORT Font_FTLibrary();
35 //! Release FT_Library instance.
36 Standard_EXPORT ~Font_FTLibrary();
38 //! This method should always return true.
39 //! @return true if FT_Library instance is valid.
42 return myFTLib != NULL;
45 //! Access FT_Library instance.
46 FT_Library Instance() const
57 Font_FTLibrary (const Font_FTLibrary& );
58 Font_FTLibrary& operator= (const Font_FTLibrary& );
62 DEFINE_STANDARD_RTTI(Font_FTLibrary) // Type definition
66 DEFINE_STANDARD_HANDLE(Font_FTLibrary, Standard_Transient)
68 #endif // _Font_FTLibrary_H__