mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Refactored some linux freetype font classes.
This commit is contained in:
parent
82976c2ac7
commit
c8b3d28acc
4 changed files with 573 additions and 479 deletions
|
|
@ -71,11 +71,22 @@
|
|||
#endif
|
||||
|
||||
#elif JUCE_LINUX
|
||||
#include <ft2build.h>
|
||||
#include FT_FREETYPE_H
|
||||
#undef SIZEOF
|
||||
#ifndef JUCE_USE_FREETYPE
|
||||
#define JUCE_USE_FREETYPE 1
|
||||
#endif
|
||||
|
||||
#if ! JUCE_USE_FREETYPE_AMALGAMATED
|
||||
#include <ft2build.h>
|
||||
#include FT_FREETYPE_H
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if JUCE_USE_FREETYPE && JUCE_USE_FREETYPE_AMALGAMATED
|
||||
#include "native/freetype/FreeTypeAmalgam.h"
|
||||
#endif
|
||||
|
||||
#undef SIZEOF
|
||||
|
||||
#if (JUCE_MAC || JUCE_IOS) && USE_COREGRAPHICS_RENDERING && JUCE_USE_COREIMAGE_LOADER
|
||||
#define JUCE_USING_COREIMAGE_LOADER 1
|
||||
#else
|
||||
|
|
@ -117,6 +128,10 @@ namespace juce
|
|||
#include "effects/juce_DropShadowEffect.cpp"
|
||||
#include "effects/juce_GlowEffect.cpp"
|
||||
|
||||
#if JUCE_USE_FREETYPE
|
||||
#include "native/juce_freetype_Fonts.cpp"
|
||||
#endif
|
||||
|
||||
//==============================================================================
|
||||
#if JUCE_MAC || JUCE_IOS
|
||||
#include "../juce_core/native/juce_osx_ObjCHelpers.h"
|
||||
|
|
@ -142,5 +157,18 @@ namespace juce
|
|||
#include "native/juce_android_Fonts.cpp"
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
#if JUCE_USE_FREETYPE && JUCE_USE_FREETYPE_AMALGAMATED
|
||||
#undef PIXEL_MASK
|
||||
#undef ZLIB_VERSION
|
||||
#undef Z_ASCII
|
||||
#undef ZEXTERN
|
||||
#undef ZEXPORT
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "native/freetype/FreeTypeAmalgam.c"
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue