This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "WeMacros.h" | |
#import "WeViews.h" | |
WePanel* footerPanel = [WePanel create]; | |
[footerPanel addHorizontal:[NSArray arrayWithObjects: | |
[WeButton createWithImage:@"button1.png"], | |
[WeButton createWithImage:@"button2.png"], | |
[WeButton createWithImage:@"button3.png"], | |
nil]]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "WeMacros.h" | |
#import "WeViews.h" | |
WePanel* panel = [[WePanel create] | |
withOpaqueBackground:UIColorRGB(0xBFBFBF)]; | |
[panel addHorizontal:[NSArray arrayWithObjects: | |
[[[WeButton createWithImage:@"button1.png"] | |
setDownImage:@"button1_down.png"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "WeMacros.h" | |
#import "WeViews.h" | |
WePanel* wePanel1 = [[WePanel create] | |
withOpaqueBackground:UIColorRGB(0xBFBFBF)]; | |
[[wePanel1 addFill1[WeCustomImageView create:upImageName]] | |
withMargin:5]; | |
[[[wePanel1 addHorizontal:[NSArray arrayWithObjects: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "WeMacros.h" | |
#import "WeViews.h" | |
WePanel* panel = [[WePanel create] | |
withOpaqueBackground:UIColorRGB(0xBFBFBF)]; | |
[[[panel addHorizontal:[NSArray arrayWithObjects: | |
[[[WeButton createWithImage:@"button1.png"] | |
setDownImage:@"button1_down.png"] | |
addClickSelector:@selector(someSelector) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dstFolder ./ufo-out | |
dstFile ./ufo-out/testFamily-Roman.ttf | |
I found the FDK! | |
Checking font /font.otf. Start time: Mon Apr 30 15:28:47 2012. | |
...... | |
Checking 1 -- Warning: Subpath with only 2 graphic elements at 420 206 This may cause problems during 'union' operation. Please inspect. Need to fix wrong orientation on subpath with original moveto at 344 645 Done. Need to fix wrong orientation on subpath with original moveto at 99 451 Done. Need to fix wrong orientation on subpath with original moveto at 631 -32 Done. NOTE: 1 intersection found. Please inspect. (*This may indicate a path with wrong orientation was removed during the 'union' operation, or a path which forms a loop. You can check this by re-running with the '-V' switch on the original data, and look for errors that you don't see when intersections are removed.) Need to fix coincident control points: 142 579 .. 420 206 Please inspect. Need to inspect for possible loop/inflection: 142 579 .. 420 206 | |
.. | |
Checking A -- Warning: Subpath with only 2 gra |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import robofab.world | |
from ufo2fdk import haveFDK | |
from ufo2fdk import OTFCompiler | |
def process(): | |
font = robofab.world.NewFont(familyName='testFamily', styleName='Roman') | |
font.info.ascender = 600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import robofab.world | |
from ufo2fdk import haveFDK | |
from ufo2fdk import OTFCompiler | |
font = robofab.world.OpenFont('<path to ufo file>') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
My understanding is that TrueType and OpenType external contours should be clockwise; | |
internal contours should be counter-clockwise. | |
RGlyph.correctDirection(), however, seems to normalize contours in exactly the opposite manner. | |
This script reproduces the issue, drawing a simple square. | |
''' | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define FLURRYLOGERROR(id, msg, err) [FlurryAnalytics logError:id message:msg error:err] | |
namespace | |
{ | |
void logUncaughtException(const std::string& type, | |
const std::string& message) | |
{ | |
#ifdef DEBUG | |
NSLog(@"exception error\n%s %s",type.c_str(), message.c_str()); | |
#endif |
OlderNewer