Тег ‘UIFont’:

My Custom UITextView with syntax highlighting

Теги: , , , , , , , ,

Комментарий (1)

Getting Font Metrics

Doc about font metric Getting Font Metrics

Теги: ,

Комментарии отсутствуют

How to include ttf fonts to iOS app

Up till now there hasn’t been an easy way to add custom fonts to your iPhone applications. As of iOS 4 it has become very easy to do. Here is what you need to do in order to add custom fonts: Add your custom font files into your project using XCode as a resource Add [...]

Теги: , ,

Комментариев (4)

NSDateFormatter and UIFont

Потерял свои закладки с этими данными. Для себя делаю заметку, но может кому то тоже понадобится.

Теги: , , ,

Комментарии отсутствуют

Quartz 2D iPhone

The most frequently used examples in Quartz Quartz Demo Open context: 123456// Create context UIGraphicsBeginImageContext(itemImage.size); CGContextRef context = UIGraphicsGetCurrentContext(); //Draw image in context CGContextDrawImage(context, imageRect, [itemImage CGImage]); Draw square in context: 12345CGContextSaveGState(context); // Set color to context for draw CGContextSetRGBFillColor(context, 0.4f, 0.4f, 0.4f, 0.4f);  // gray color with alpha 40 % CGContextFillRect(context, rect);     [...]

Теги: , ,

Комментарии отсутствуют

How to include ttf fonts in iPhone app

Хороший способ подключения шрифтов. Кидаем в ресурсы наш шрифт. Вставляем и выполняем функцию. 12345678910111213141516NSUInteger loadFonts() {      NSUInteger newFontCount = 0;      NSBundle *frameworkBundle = [NSBundle bundleWithIdentifier:@"com.apple.GraphicsServices"];      const char *frameworkPath = [[frameworkBundle executablePath] UTF8String];      if (frameworkPath) {           void *graphicsServices = dlopen(frameworkPath, RTLD_NOLOAD | RTLD_LAZY); [...]

Теги: , ,

Комментариев (8)