GDIFontMap.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-2003, International Business Machines Corporation and *
  8. * others. All Rights Reserved. *
  9. ******************************************************************************
  10. */
  11. #ifndef __GDIFONTMAP_H
  12. #define __GDIFONTMAP_H
  13. #include <windows.h>
  14. #include "unicode/uscript.h"
  15. #include "layout/LETypes.h"
  16. #include "layout/LEFontInstance.h"
  17. #include "FontMap.h"
  18. #include "GUISupport.h"
  19. #include "GDIFontInstance.h"
  20. #define BUFFER_SIZE 128
  21. class GDIFontMap : public FontMap
  22. {
  23. public:
  24. GDIFontMap(GDISurface *surface, const char *fileName, le_int16 pointSize, GUISupport *guiSupport, LEErrorCode &status);
  25. virtual ~GDIFontMap();
  26. protected:
  27. virtual const LEFontInstance *openFont(const char *fontName, le_int16 pointSize, LEErrorCode &status);
  28. private:
  29. GDISurface *fSurface;
  30. };
  31. #endif