mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-21 06:15:15 +00:00
24 lines
801 B
Objective-C
24 lines
801 B
Objective-C
/*
|
|
|
|
Erica Sadun, http://ericasadun.com
|
|
|
|
*/
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import <Foundation/Foundation.h>
|
|
@import Foundation;
|
|
@import CoreText;
|
|
|
|
#import "Drawing-Text.h"
|
|
|
|
// Sizing
|
|
NSArray *WidthArrayForStringWithFont(NSString *string, UIFont *font);
|
|
|
|
// Drawing
|
|
void DrawStringInRect(NSString *string, CGRect rect, UIFont *font, NSTextAlignment alignment, UIColor *color);
|
|
void DrawWrappedStringInRect(NSString *string, CGRect rect, NSString *fontFace, NSTextAlignment alignment, UIColor *color);
|
|
void DrawUnwrappedStringInRect(NSString *string, CGRect rect, NSString *fontFace, NSTextAlignment alignment, UIColor *color);
|
|
void DrawStringCenteredInRect(NSString *string, UIFont *font, CGRect rect);
|
|
|
|
UIFont *FontForWrappedString(NSString *string, NSString *fontFace, CGRect rect, CGFloat tolerance);
|