Port new GlyphContext, FontData, enums, props, Bezier and text rendering

This commit is contained in:
Mikael Sand
2017-08-23 05:41:35 +03:00
parent 3cafc34cb2
commit ccb8729917
105 changed files with 10437 additions and 105 deletions
+18
View File
@@ -0,0 +1,18 @@
#import "TextPathSide.h"
NSString* TextPathSideToString( enum TextPathSide fw )
{
return TextPathSideStrings[fw];
}
enum TextPathSide TextPathSideFromString( NSString* s )
{
NSInteger i;
NSString* fw;
for (i = 0; fw = TextPathSideStrings[i], fw != nil; i++) {
if ([fw isEqualToString:s]) {
return i;
}
}
return TextPathSideDEFAULT;
}