GnomeFontMap.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. *******************************************************************************
  3. * © 2016 and later: Unicode, Inc. and others.
  4. * License & terms of use: http://www.unicode.org/copyright.html#License
  5. *******************************************************************************
  6. ******************************************************************************
  7. * Copyright (C) 1998-2006, International Business Machines Corporation and *
  8. * others. All Rights Reserved. *
  9. ******************************************************************************
  10. */
  11. #ifndef __GNOMEFONTMAP_H
  12. #define __GNOMEFONTMAP_H
  13. #include <ft2build.h>
  14. #include FT_FREETYPE_H
  15. #include "unicode/uscript.h"
  16. #include "layout/LETypes.h"
  17. #include "layout/LEFontInstance.h"
  18. #include "GUISupport.h"
  19. #include "FontMap.h"
  20. #define BUFFER_SIZE 128
  21. class GnomeFontMap : public FontMap
  22. {
  23. public:
  24. GnomeFontMap(FT_Library engine, const char *fileName, le_int16 pointSize, GUISupport *guiSupport, LEErrorCode &status);
  25. virtual ~GnomeFontMap();
  26. protected:
  27. virtual const LEFontInstance *openFont(const char *fontName, le_int16 pointSize, LEErrorCode &status);
  28. private:
  29. FT_Library fEngine;
  30. };
  31. #endif