check for existing #defines
This commit is contained in:
parent
eff83cda8b
commit
3a156be801
1 changed files with 9 additions and 3 deletions
|
@ -15,9 +15,15 @@
|
||||||
#include FT_FREETYPE_H
|
#include FT_FREETYPE_H
|
||||||
#include FT_MULTIPLE_MASTERS_H
|
#include FT_MULTIPLE_MASTERS_H
|
||||||
|
|
||||||
|
#ifndef F26DOT6_TO_DOUBLE
|
||||||
#define F26DOT6_TO_DOUBLE(x) (1 / 64. * double(x))
|
#define F26DOT6_TO_DOUBLE(x) (1 / 64. * double(x))
|
||||||
|
#endif
|
||||||
|
#ifndef F16DOT16_TO_DOUBLE
|
||||||
#define F16DOT16_TO_DOUBLE(x) (1 / 65536. * double(x))
|
#define F16DOT16_TO_DOUBLE(x) (1 / 65536. * double(x))
|
||||||
|
#endif
|
||||||
|
#ifndef DOUBLE_TO_F16DOT16
|
||||||
#define DOUBLE_TO_F16DOT16(x) FT_Fixed(65536. * x)
|
#define DOUBLE_TO_F16DOT16(x) FT_Fixed(65536. * x)
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace ofxGPUFont {
|
namespace ofxGPUFont {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue