add Font Awesome

This commit is contained in:
Sami Samhuri 2015-05-03 23:57:13 -07:00
parent fad44fb00b
commit 39cb0c9776
52 changed files with 4042 additions and 2187 deletions

View file

@ -32,6 +32,7 @@
7B5C4BED19F2606900667D48 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7B5C4BEC19F2606900667D48 /* Images.xcassets */; };
7B5C4BF019F2606900667D48 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 7B5C4BEE19F2606900667D48 /* LaunchScreen.xib */; };
7B5C4BFC19F2606900667D48 /* BlogTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B5C4BFB19F2606900667D48 /* BlogTests.m */; };
7B8D2E051AF7447F002030CD /* FontAwesome.otf in Resources */ = {isa = PBXBuildFile; fileRef = 7B8D2E041AF7447F002030CD /* FontAwesome.otf */; };
7B9E64281A227BFE0072FF42 /* Post.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B9E64271A227BFE0072FF42 /* Post.m */; };
7B9E642D1A227FA20072FF42 /* NSDate+marshmallows.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B9E642A1A227FA20072FF42 /* NSDate+marshmallows.m */; };
7B9E642E1A227FA20072FF42 /* NSString+marshmallows.m in Sources */ = {isa = PBXBuildFile; fileRef = 7B9E642C1A227FA20072FF42 /* NSString+marshmallows.m */; };
@ -95,6 +96,7 @@
7B5C4BF519F2606900667D48 /* BlogTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = BlogTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
7B5C4BFA19F2606900667D48 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
7B5C4BFB19F2606900667D48 /* BlogTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = BlogTests.m; sourceTree = "<group>"; };
7B8D2E041AF7447F002030CD /* FontAwesome.otf */ = {isa = PBXFileReference; lastKnownFileType = file; path = FontAwesome.otf; sourceTree = "<group>"; };
7B9E64261A227BFE0072FF42 /* Post.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Post.h; sourceTree = "<group>"; };
7B9E64271A227BFE0072FF42 /* Post.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Post.m; sourceTree = "<group>"; };
7B9E64291A227FA20072FF42 /* NSDate+marshmallows.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSDate+marshmallows.h"; sourceTree = "<group>"; };
@ -156,6 +158,7 @@
1BCFC29A0845EAB04BFDAD67 /* Fonts */ = {
isa = PBXGroup;
children = (
7B8D2E041AF7447F002030CD /* FontAwesome.otf */,
1BCFCB67571197A762B88624 /* MuseoSans-100-Italic.otf */,
1BCFCC3154DB1D3B3C025211 /* MuseoSans-100.otf */,
1BCFCD0E9504E1E8AB8C0275 /* MuseoSans-300-Italic.otf */,
@ -393,6 +396,7 @@
1BCFC56B50FFDC7782B79B7C /* MuseoSans-500-Italic.otf in Resources */,
1BCFC07F224F7BB568C1EE92 /* MuseoSans-500.otf in Resources */,
1BCFCFF473F6CE1B00AD9556 /* MuseoSans-700-Italic.otf in Resources */,
7B8D2E051AF7447F002030CD /* FontAwesome.otf in Resources */,
1BCFCE976D6638781FBA9942 /* MuseoSans-700.otf in Resources */,
1BCFCF2DAA6DDF2445F02F5A /* MuseoSans-900-Italic.otf in Resources */,
1BCFC681892C7A6DF96DB65E /* MuseoSans-900.otf in Resources */,

BIN
Blog/Fonts/FontAwesome.otf Normal file

Binary file not shown.

View file

@ -1,22 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "close-60@2x.png"
},
{
"idiom" : "universal",
"scale" : "3x",
"filename" : "close-60@3x.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 673 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -1,21 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "keyboard@2x.png"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

View file

@ -1,22 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "link-67@2x.png"
},
{
"idiom" : "universal",
"scale" : "3x",
"filename" : "link-67@3x.png"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 698 B

View file

@ -59,6 +59,7 @@
</array>
<key>UIAppFonts</key>
<array>
<string>FontAwesome.otf</string>
<string>MuseoSans-100-Italic.otf</string>
<string>MuseoSans-100.otf</string>
<string>MuseoSans-300-Italic.otf</string>

View file

@ -10,6 +10,7 @@ target :Blog do
pod 'libextobjc'
pod 'ObjectiveSugar'
pod 'dyci'
pod 'FontAwesome+iOS', :git => 'https://github.com/alexdrone/ios-fontawesome.git'
end
target :BlogTests do

View file

@ -7,6 +7,7 @@ PODS:
- dyci (0.1.5.6):
- dyci/Injections (= 0.1.5.6)
- dyci/Injections (0.1.5.6)
- FontAwesome+iOS (0.0.1)
- libextobjc (0.4.1):
- libextobjc/EXTADT (= 0.4.1)
- libextobjc/EXTConcreteProtocol (= 0.4.1)
@ -96,15 +97,26 @@ PODS:
DEPENDENCIES:
- dyci
- FontAwesome+iOS (from `https://github.com/alexdrone/ios-fontawesome.git`)
- libextobjc
- Mantle
- ObjectiveSugar
- PromiseKit
- YapDatabase
EXTERNAL SOURCES:
FontAwesome+iOS:
:git: https://github.com/alexdrone/ios-fontawesome.git
CHECKOUT OPTIONS:
FontAwesome+iOS:
:commit: 432e193b5a776d7283ec4f0e7b238eee46787153
:git: https://github.com/alexdrone/ios-fontawesome.git
SPEC CHECKSUMS:
CocoaLumberjack: 628fca2e88ef06f7cf6817309aa405f325d9a6fa
dyci: 099c2e6dc98abb8f21b370cabbf1443ff700608a
FontAwesome+iOS: c6d3bbd2856b9633028d316d56133d45fb6a6cb0
libextobjc: a650fc1bf489a3d3a9bc2e621efa3e1006fc5471
Mantle: 17de73ef929db2234d76fde2aacfb89ab11c61e8
ObjectiveSugar: a6a25f23d657c19df0a0b972466d5b5ca9f5295c
@ -112,4 +124,4 @@ SPEC CHECKSUMS:
PromiseKit: b333c1baae651ed1fdfb4f6f4ef18d7ca118931e
YapDatabase: 13566c87dc9226a0f15d755edba08e8ad94cac9f
COCOAPODS: 0.37.0.rc.2
COCOAPODS: 0.37.0

46
Pods/FontAwesome+iOS/FAImageView.h generated Normal file
View file

@ -0,0 +1,46 @@
//
// FAImageView.m
//
// Copyright (c) 2012 Alex Usbergo. All rights reserved.
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//
// An UIImageView with the support of displaying
// a vectorial icon (by using the fontawesome iconic font)
// if the image is missing
#import <UIKit/UIKit.h>
#import "NSString+FontAwesome.h"
@interface FAImageView : UIImageView
/* The background color for the default view displayed when the image is missing */
@property (nonatomic, strong) UIColor *defaultIconColor UI_APPEARANCE_SELECTOR;
/* Set the icon using the fontawesome icon's identifier */
@property (nonatomic, strong) NSString *defaultIconIdentifier;
/* Set the icon using the icon enumerations */
@property (nonatomic, assign) FAIcon defaultIcon;
/* The view that is displayed when the image is set to nil */
@property (nonatomic, strong) UILabel *defaultView;
@end

86
Pods/FontAwesome+iOS/FAImageView.m generated Normal file
View file

@ -0,0 +1,86 @@
//
// FAImageView.m
//
// Copyright (c) 2012 Alex Usbergo. All rights reserved.
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//
// An UIImageView with the support of displaying
// a vectorial icon (by using the fontawesome iconic font)
// if the image is missing
#import "FAImageView.h"
#import "UIFont+FontAwesome.h"
@implementation FAImageView
/* When the image is set to nil the defaultView will be added as subview,
* otherwise it will be removed */
- (void)setImage:(UIImage*)image
{
[super setImage:image];
self.defaultView.hidden = (nil != image);
}
#pragma mark - Toggle the icon view
/* Lazy initialization of the view */
- (UILabel*)defaultView
{
if (nil != _defaultView)
return _defaultView;
//The size of the default view is the same of self
_defaultView = [[UILabel alloc] initWithFrame:self.bounds];
_defaultView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
//The default icon is the ban icon
[self setDefaultIcon:FABan];
_defaultView.font = [UIFont fontAwesomeFontOfSize:self.bounds.size.height];
_defaultView.textAlignment = NSTextAlignmentCenter;
_defaultView.adjustsFontSizeToFitWidth = YES;
//UIAppearance selectors
_defaultView.textColor = [UIColor whiteColor];
_defaultView.backgroundColor = [UIColor colorWithRed:.9f green:.9f blue:.9f alpha:1.f];
//It starts hidden
_defaultView.hidden = YES;
[self addSubview:_defaultView];
return _defaultView;
}
#pragma mark - Properties
- (void)setDefaultIconIdentifier:(NSString*)defaultIconIdentifier
{
self.defaultIcon = [NSString fontAwesomeEnumForIconIdentifier:defaultIconIdentifier];
}
- (void)setDefaultIcon:(FAIcon)defaultIcon
{
_defaultIcon = defaultIcon;
_defaultView.text = [NSString fontAwesomeIconStringForEnum:defaultIcon];
}
@end

View file

@ -0,0 +1,604 @@
//
// NSString+FontAwesome.h
//
// Copyright (c) 2012 Alex Usbergo. All rights reserved.
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//
#import <Foundation/Foundation.h>
static NSString *const kFontAwesomeFamilyName = @"FontAwesome";
/**
@abstract FontAwesome Icons.
*/
typedef NS_ENUM(NSInteger, FAIcon) {
FAGlass,
FAMusic,
FASearch,
FAEnvelopeO,
FAHeart,
FAStar,
FAStarO,
FAUser,
FAFilm,
FAThLarge,
FATh,
FAThList,
FACheck,
FATimes,
FASearchPlus,
FASearchMinus,
FAPowerOff,
FASignal,
FACog,
FATrashO,
FAHome,
FAFileO,
FAClockO,
FARoad,
FADownload,
FAArrowCircleODown,
FAArrowCircleOUp,
FAInbox,
FAPlayCircleO,
FARepeat,
FARefresh,
FAListAlt,
FALock,
FAFlag,
FAHeadphones,
FAVolumeOff,
FAVolumeDown,
FAVolumeUp,
FAQrcode,
FABarcode,
FATag,
FATags,
FABook,
FABookmark,
FAPrint,
FACamera,
FAFont,
FABold,
FAItalic,
FATextHeight,
FATextWidth,
FAAlignLeft,
FAAlignCenter,
FAAlignRight,
FAAlignJustify,
FAList,
FAOutdent,
FAIndent,
FAVideoCamera,
FAPictureO,
FAPencil,
FAMapMarker,
FAAdjust,
FATint,
FAPencilSquareO,
FAShareSquareO,
FACheckSquareO,
FAArrows,
FAStepBackward,
FAFastBackward,
FABackward,
FAPlay,
FAPause,
FAStop,
FAForward,
FAFastForward,
FAStepForward,
FAEject,
FAChevronLeft,
FAChevronRight,
FAPlusCircle,
FAMinusCircle,
FATimesCircle,
FACheckCircle,
FAQuestionCircle,
FAInfoCircle,
FACrosshairs,
FATimesCircleO,
FACheckCircleO,
FABan,
FAArrowLeft,
FAArrowRight,
FAArrowUp,
FAArrowDown,
FAShare,
FAExpand,
FACompress,
FAPlus,
FAMinus,
FAAsterisk,
FAExclamationCircle,
FAGift,
FALeaf,
FAFire,
FAEye,
FAEyeSlash,
FAExclamationTriangle,
FAPlane,
FACalendar,
FARandom,
FAComment,
FAMagnet,
FAChevronUp,
FAChevronDown,
FARetweet,
FAShoppingCart,
FAFolder,
FAFolderOpen,
FAArrowsV,
FAArrowsH,
FABarChartO,
FATwitterSquare,
FAFacebookSquare,
FACameraRetro,
FAKey,
FACogs,
FAComments,
FAThumbsOUp,
FAThumbsODown,
FAStarHalf,
FAHeartO,
FASignOut,
FALinkedinSquare,
FAThumbTack,
FAExternalLink,
FASignIn,
FATrophy,
FAGithubSquare,
FAUpload,
FALemonO,
FAPhone,
FASquareO,
FABookmarkO,
FAPhoneSquare,
FATwitter,
FAFacebook,
FAGithub,
FAUnlock,
FACreditCard,
FARss,
FAHddO,
FABullhorn,
FABell,
FACertificate,
FAHandORight,
FAHandOLeft,
FAHandOUp,
FAHandODown,
FAArrowCircleLeft,
FAArrowCircleRight,
FAArrowCircleUp,
FAArrowCircleDown,
FAGlobe,
FAWrench,
FATasks,
FAFilter,
FABriefcase,
FAArrowsAlt,
FAUsers,
FALink,
FACloud,
FAFlask,
FAScissors,
FAFilesO,
FAPaperclip,
FAFloppyO,
FASquare,
FABars,
FAListUl,
FAListOl,
FAStrikethrough,
FAUnderline,
FATable,
FAMagic,
FATruck,
FAPinterest,
FAPinterestSquare,
FAGooglePlusSquare,
FAGooglePlus,
FAMoney,
FACaretDown,
FACaretUp,
FACaretLeft,
FACaretRight,
FAColumns,
FASort,
FASortAsc,
FASortDesc,
FAEnvelope,
FALinkedin,
FAUndo,
FAGavel,
FATachometer,
FACommentO,
FACommentsO,
FABolt,
FASitemap,
FAUmbrella,
FAClipboard,
FALightbulbO,
FAExchange,
FACloudDownload,
FACloudUpload,
FAUserMd,
FAStethoscope,
FASuitcase,
FABellO,
FACoffee,
FACutlery,
FAFileTextO,
FABuildingO,
FAHospitalO,
FAAmbulance,
FAMedkit,
FAFighterJet,
FABeer,
FAHSquare,
FAPlusSquare,
FAAngleDoubleLeft,
FAAngleDoubleRight,
FAAngleDoubleUp,
FAAngleDoubleDown,
FAAngleLeft,
FAAngleRight,
FAAngleUp,
FAAngleDown,
FADesktop,
FALaptop,
FATablet,
FAMobile,
FACircleO,
FAQuoteLeft,
FAQuoteRight,
FASpinner,
FACircle,
FAReply,
FAGithubAlt,
FAFolderO,
FAFolderOpenO,
FASmileO,
FAFrownO,
FAMehO,
FAGamepad,
FAKeyboardO,
FAFlagO,
FAFlagCheckered,
FATerminal,
FACode,
FAReplyAll,
FAMailReplyAll,
FAStarHalfO,
FALocationArrow,
FACrop,
FACodeFork,
FAChainBroken,
FAQuestion,
FAInfo,
FAExclamation,
FASuperscript,
FASubscript,
FAEraser,
FAPuzzlePiece,
FAMicrophone,
FAMicrophoneSlash,
FAShield,
FACalendarO,
FAFireExtinguisher,
FARocket,
FAMaxcdn,
FAChevronCircleLeft,
FAChevronCircleRight,
FAChevronCircleUp,
FAChevronCircleDown,
FAHtml5,
FACss3,
FAAnchor,
FAUnlockAlt,
FABullseye,
FAEllipsisH,
FAEllipsisV,
FARssSquare,
FAPlayCircle,
FATicket,
FAMinusSquare,
FAMinusSquareO,
FALevelUp,
FALevelDown,
FACheckSquare,
FAPencilSquare,
FAExternalLinkSquare,
FAShareSquare,
FACompass,
FACaretSquareODown,
FACaretSquareOUp,
FACaretSquareORight,
FAEur,
FAGbp,
FAUsd,
FAInr,
FAJpy,
FARub,
FAKrw,
FABtc,
FAFile,
FAFileText,
FASortAlphaAsc,
FASortAlphaDesc,
FASortAmountAsc,
FASortAmountDesc,
FASortNumericAsc,
FASortNumericDesc,
FAThumbsUp,
FAThumbsDown,
FAYoutubeSquare,
FAYoutube,
FAXing,
FAXingSquare,
FAYoutubePlay,
FADropbox,
FAStackOverflow,
FAInstagram,
FAFlickr,
FAAdn,
FABitbucket,
FABitbucketSquare,
FATumblr,
FATumblrSquare,
FALongArrowDown,
FALongArrowUp,
FALongArrowLeft,
FALongArrowRight,
FAApple,
FAWindows,
FAAndroid,
FALinux,
FADribbble,
FASkype,
FAFoursquare,
FATrello,
FAFemale,
FAMale,
FAGittip,
FASunO,
FAMoonO,
FAArchive,
FABug,
FAVk,
FAWeibo,
FARenren,
FAPagelines,
FAStackExchange,
FAArrowCircleORight,
FAArrowCircleOLeft,
FACaretSquareOLeft,
FADotCircleO,
FAWheelchair,
FAVimeoSquare,
FATry,
FAPlusSquareO,
/* FontAwesome ver 4.1.0 */
FAautomobile,
FAbank,
FAbehance,
FAbehanceSquare,
FAbomb,
FAbuilding,
FAcab,
FAcar,
FAchild,
FAcircleONotch,
FAcircleThin,
FAcodepen,
FAcube,
FAcubes,
FAdatabase,
FAdelicious,
FAdeviantart,
FAdigg,
FAdrupal,
FAempire,
FAenvelopeSquare,
FAfax,
FAfileArchiveO,
FAfileAudioO,
FAfileCodeO,
FAfileExcelO,
FAfileImageO,
FAfileMovieO,
FAfilePdfO,
FAfilePhotoO,
FAfilePictureO,
FAfilePowerpointO,
FAfileSoundO,
FAfileVideoO,
FAfileWordO,
FAfileZipO,
FAge,
FAgit,
FAgitSquare,
FAgoogle,
FAgraduationCap,
FAhackerNews,
FAheader,
FAhistory,
FAinstitution,
FAjoomla,
FAjsfiddle,
FAlanguage,
FAlifeBouy,
FAlifeRing,
FAlifeSaver,
FAmortarBoard,
FAopenid,
FApaperPlane,
FApaperPlaneO,
FAparagraph,
FApaw,
FApiedPiper,
FApiedPiperalt,
FApiedPipersquare,
FAqq,
FAra,
FArebel,
FArecycle,
FAreddit,
FAredditSquare,
FAsend,
FAsendO,
FAshareAlt,
FAshareAltSquare,
FAslack,
FAsliders,
FAsoundcloud,
FAspaceShuttle,
FAspoon,
FAspotify,
FAsteam,
FAsteamSquare,
FAstumbleupon,
FAstumbleuponCircle,
FAsupport,
FAtaxi,
FAtencentWeibo,
FAtree,
FAuniversity,
FAvine,
FAwechat,
FAweixin,
FAwordpress,
FAyahoo,
/* FontAwesome ver 4.2.0 */
FAangellist,
FAareaChart,
FAat,
FAbellSlash,
FAbellSlashO,
FAbicycle,
FAbinoculars,
FAbirthdayCake,
FAbus,
FAcalculator,
FAcc,
FAccAmex,
FAccDiscover,
FAccMastercard,
FAccPaypal,
FAccStripe,
FAccVisa,
FAcopyright,
FAeyedropper,
FAfutbolO,
FAgoogleWallet,
FAils,
FAioxhost,
FAlastfm,
FAlastfmSquare,
FAlineChart,
FAmeanpath,
FAnewspaperO,
FApaintBrush,
FApaypal,
FApieChart,
FAplug,
FAshekel,
FAsheqel,
FAslideshare,
FAsoccerBallO,
FAtoggleOff,
FAtoggleOn,
FAtrash,
FAtty,
FAtwitch,
FAwifi,
FAyelp,
/* FontAwesome ver 4.3.0 */
FAbed,
FAbuysellads,
FAcartArrowDown,
FAcartPlus,
FAconnectdevelop,
FAdashcube,
FAdiamond,
FAfacebookOfficial,
FAforumbee,
FAheartbeat,
FAhotel,
FAleanpub,
FAmars,
FAmarsDouble,
FAmarsStroke,
FAmarsStrokeH,
FAmarsStrokeV,
FAmedium,
FAmercury,
FAmotorcycle,
FAneuter,
FApinterestP,
FAsellsy,
FAserver,
FAship,
FAshirtsinbulk,
FAsimplybuilt,
FAskyatlas,
FAstreetView,
FAsubway,
FAtrain,
FAtransgender,
FAtransgenderAlt,
FAuserPlus,
FAuserSecret,
FAuserTimes,
FAvenus,
FAvenusDouble,
FAvenusMars,
FAviacoin
};
@interface NSString (FontAwesome)
/**
@abstract Returns the correct enum for a font-awesome icon.
@discussion The list of identifiers can be found here: http://fortawesome.github.com/Font-Awesome/#all-icons
*/
+ (FAIcon)fontAwesomeEnumForIconIdentifier:(NSString*)string;
/**
@abstract Returns the font-awesome character associated to the icon enum passed as argument
*/
+ (NSString*)fontAwesomeIconStringForEnum:(FAIcon)value;
/*
@abstract Returns the font-awesome character associated to the font-awesome identifier.
@discussion The list of identifiers can be found here: http://fortawesome.github.com/Font-Awesome/#all-icons
*/
+ (NSString*)fontAwesomeIconStringForIconIdentifier:(NSString*)identifier;
@end

View file

@ -0,0 +1,628 @@
//
// NSString+FontAwesome.m
//
// Copyright (c) 2012 Alex Usbergo. All rights reserved.
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//
#import "NSString+FontAwesome.h"
@implementation NSString (FontAwesome)
#pragma mark - Public API
+ (FAIcon)fontAwesomeEnumForIconIdentifier:(NSString*)string {
NSDictionary *enums = [self enumDictionary];
return [enums[string] integerValue];
}
+ (NSString*)fontAwesomeIconStringForEnum:(FAIcon)value {
return [NSString fontAwesomeUnicodeStrings][value];
}
+ (NSString*)fontAwesomeIconStringForIconIdentifier:(NSString*)identifier {
return [self fontAwesomeIconStringForEnum:[self fontAwesomeEnumForIconIdentifier:identifier]];
}
#pragma mark - Data Initialization
+ (NSArray *)fontAwesomeUnicodeStrings {
static NSArray *fontAwesomeUnicodeStrings;
static dispatch_once_t unicodeStringsOnceToken;
dispatch_once(&unicodeStringsOnceToken, ^{
fontAwesomeUnicodeStrings = @[@"\uf000", @"\uf001", @"\uf002", @"\uf003", @"\uf004", @"\uf005", @"\uf006", @"\uf007", @"\uf008", @"\uf009", @"\uf00a", @"\uf00b", @"\uf00c", @"\uf00d", @"\uf00e", @"\uf010", @"\uf011", @"\uf012", @"\uf013", @"\uf014", @"\uf015", @"\uf016", @"\uf017", @"\uf018", @"\uf019", @"\uf01a", @"\uf01b", @"\uf01c", @"\uf01d", @"\uf01e", @"\uf021", @"\uf022", @"\uf023", @"\uf024", @"\uf025", @"\uf026", @"\uf027", @"\uf028", @"\uf029", @"\uf02a", @"\uf02b", @"\uf02c", @"\uf02d", @"\uf02e", @"\uf02f", @"\uf030", @"\uf031", @"\uf032", @"\uf033", @"\uf034", @"\uf035", @"\uf036", @"\uf037", @"\uf038", @"\uf039", @"\uf03a", @"\uf03b", @"\uf03c", @"\uf03d", @"\uf03e", @"\uf040", @"\uf041", @"\uf042", @"\uf043", @"\uf044", @"\uf045", @"\uf046", @"\uf047", @"\uf048", @"\uf049", @"\uf04a", @"\uf04b", @"\uf04c", @"\uf04d", @"\uf04e", @"\uf050", @"\uf051", @"\uf052", @"\uf053", @"\uf054", @"\uf055", @"\uf056", @"\uf057", @"\uf058", @"\uf059", @"\uf05a", @"\uf05b", @"\uf05c", @"\uf05d", @"\uf05e", @"\uf060", @"\uf061", @"\uf062", @"\uf063", @"\uf064", @"\uf065", @"\uf066", @"\uf067", @"\uf068", @"\uf069", @"\uf06a", @"\uf06b", @"\uf06c", @"\uf06d", @"\uf06e", @"\uf070", @"\uf071", @"\uf072", @"\uf073", @"\uf074", @"\uf075", @"\uf076", @"\uf077", @"\uf078", @"\uf079", @"\uf07a", @"\uf07b", @"\uf07c", @"\uf07d", @"\uf07e", @"\uf080", @"\uf081", @"\uf082", @"\uf083", @"\uf084", @"\uf085", @"\uf086", @"\uf087", @"\uf088", @"\uf089", @"\uf08a", @"\uf08b", @"\uf08c", @"\uf08d", @"\uf08e", @"\uf090", @"\uf091", @"\uf092", @"\uf093", @"\uf094", @"\uf095", @"\uf096", @"\uf097", @"\uf098", @"\uf099", @"\uf09a", @"\uf09b", @"\uf09c", @"\uf09d", @"\uf09e", @"\uf0a0", @"\uf0a1", @"\uf0f3", @"\uf0a3", @"\uf0a4", @"\uf0a5", @"\uf0a6", @"\uf0a7", @"\uf0a8", @"\uf0a9", @"\uf0aa", @"\uf0ab", @"\uf0ac", @"\uf0ad", @"\uf0ae", @"\uf0b0", @"\uf0b1", @"\uf0b2", @"\uf0c0", @"\uf0c1", @"\uf0c2", @"\uf0c3", @"\uf0c4", @"\uf0c5", @"\uf0c6", @"\uf0c7", @"\uf0c8", @"\uf0c9", @"\uf0ca", @"\uf0cb", @"\uf0cc", @"\uf0cd", @"\uf0ce", @"\uf0d0", @"\uf0d1", @"\uf0d2", @"\uf0d3", @"\uf0d4", @"\uf0d5", @"\uf0d6", @"\uf0d7", @"\uf0d8", @"\uf0d9", @"\uf0da", @"\uf0db", @"\uf0dc", @"\uf0dd", @"\uf0de", @"\uf0e0", @"\uf0e1", @"\uf0e2", @"\uf0e3", @"\uf0e4", @"\uf0e5", @"\uf0e6", @"\uf0e7", @"\uf0e8", @"\uf0e9", @"\uf0ea", @"\uf0eb", @"\uf0ec", @"\uf0ed", @"\uf0ee", @"\uf0f0", @"\uf0f1", @"\uf0f2", @"\uf0a2", @"\uf0f4", @"\uf0f5", @"\uf0f6", @"\uf0f7", @"\uf0f8", @"\uf0f9", @"\uf0fa", @"\uf0fb", @"\uf0fc", @"\uf0fd", @"\uf0fe", @"\uf100", @"\uf101", @"\uf102", @"\uf103", @"\uf104", @"\uf105", @"\uf106", @"\uf107", @"\uf108", @"\uf109", @"\uf10a", @"\uf10b", @"\uf10c", @"\uf10d", @"\uf10e", @"\uf110", @"\uf111", @"\uf112", @"\uf113", @"\uf114", @"\uf115", @"\uf118", @"\uf119", @"\uf11a", @"\uf11b", @"\uf11c", @"\uf11d", @"\uf11e", @"\uf120", @"\uf121", @"\uf122", @"\uf122", @"\uf123", @"\uf124", @"\uf125", @"\uf126", @"\uf127", @"\uf128", @"\uf129", @"\uf12a", @"\uf12b", @"\uf12c", @"\uf12d", @"\uf12e", @"\uf130", @"\uf131", @"\uf132", @"\uf133", @"\uf134", @"\uf135", @"\uf136", @"\uf137", @"\uf138", @"\uf139", @"\uf13a", @"\uf13b", @"\uf13c", @"\uf13d", @"\uf13e", @"\uf140", @"\uf141", @"\uf142", @"\uf143", @"\uf144", @"\uf145", @"\uf146", @"\uf147", @"\uf148", @"\uf149", @"\uf14a", @"\uf14b", @"\uf14c", @"\uf14d", @"\uf14e", @"\uf150", @"\uf151", @"\uf152", @"\uf153", @"\uf154", @"\uf155", @"\uf156", @"\uf157", @"\uf158", @"\uf159", @"\uf15a", @"\uf15b", @"\uf15c", @"\uf15d", @"\uf15e", @"\uf160", @"\uf161", @"\uf162", @"\uf163", @"\uf164", @"\uf165", @"\uf166", @"\uf167", @"\uf168", @"\uf169", @"\uf16a", @"\uf16b", @"\uf16c", @"\uf16d", @"\uf16e", @"\uf170", @"\uf171", @"\uf172", @"\uf173", @"\uf174", @"\uf175", @"\uf176", @"\uf177", @"\uf178", @"\uf179", @"\uf17a", @"\uf17b", @"\uf17c", @"\uf17d", @"\uf17e", @"\uf180", @"\uf181", @"\uf182", @"\uf183", @"\uf184", @"\uf185", @"\uf186", @"\uf187", @"\uf188", @"\uf189", @"\uf18a", @"\uf18b", @"\uf18c", @"\uf18d", @"\uf18e", @"\uf190", @"\uf191", @"\uf192", @"\uf193", @"\uf194", @"\uf195", @"\uf196",
/* Font Awesome ver 4.10 */
@"\uf1b9", @"\uf19c", @"\uf1b4", @"\uf1b5", @"\uf1e2", @"\uf1ad", @"\uf1ba", @"\uf1b9", @"\uf1ae", @"\uf1ce", @"\uf1db", @"\uf1cb", @"\uf1b2", @"\uf1b3", @"\uf1c0", @"\uf1a5", @"\uf1bd", @"\uf1a6", @"\uf1a9", @"\uf1d1", @"\uf199", @"\uf1ac", @"\uf1c6", @"\uf1c7", @"\uf1c9", @"\uf1c3", @"\uf1c5", @"\uf1c8", @"\uf1c1", @"\uf1c5", @"\uf1c5", @"\uf1c4", @"\uf1c7", @"\uf1c8", @"\uf1c2", @"\uf1c6", @"\uf1d1", @"\uf1d3", @"\uf1d2", @"\uf1a0", @"\uf19d", @"\uf1d4", @"\uf1dc", @"\uf1da", @"\uf19c", @"\uf1aa", @"\uf1cc", @"\uf1ab", @"\uf1cd", @"\uf1cd", @"\uf1cd", @"\uf19d", @"\uf19b", @"\uf1d8", @"\uf1d9", @"\uf1dd", @"\uf1b0", @"\uf1a7", @"\uf1a8", @"\uf1a7", @"\uf1d6", @"\uf1d0", @"\uf1d0", @"\uf1b8", @"\uf1a1", @"\uf1a2", @"\uf1d8", @"\uf1d9", @"\uf1e0", @"\uf1e1", @"\uf198", @"\uf1de", @"\uf1be", @"\uf197", @"\uf1b1", @"\uf1bc", @"\uf1b6", @"\uf1b7", @"\uf1a4", @"\uf1a3", @"\uf1cd", @"\uf1ba", @"\uf1d5", @"\uf1bb", @"\uf19c", @"\uf1ca", @"\uf1d7", @"\uf1d7", @"\uf19a", @"\uf19e",
/* Font Awesome ver 4.20 */
@"\uf209", @"\uf1fe", @"\uf1fa", @"\uf1f6", @"\uf1f7", @"\uf206", @"\uf1e5", @"\uf1fd", @"\uf207", @"\uf1ec", @"\uf20a", @"\uf1f3", @"\uf1f2", @"\uf1f1", @"\uf1f4", @"\uf1f5", @"\uf1f0", @"\uf1f9", @"\uf1fb", @"\uf1e3", @"\uf1ee", @"\uf20b", @"\uf208", @"\uf202", @"\uf203", @"\uf201", @"\uf20c", @"\uf1ea", @"\uf1fc", @"\uf1ed", @"\uf200", @"\uf1e6", @"\uf20b", @"\uf20b", @"\uf1e7", @"\uf1e3", @"\uf204", @"\uf205", @"\uf1f8", @"\uf1e4", @"\uf1e8", @"\uf1eb", @"\uf1e9",
/* Font Awesome ver 4.30 */
@"\uf236", @"\uf20d", @"\uf218", @"\uf217;", @"\uf20e", @"\uf210", @"\uf219", @"\uf230", @"\uf211", @"\uf21e", @"\uf236", @"\uf212", @"\uf222", @"\uf227", @"\uf229", @"\uf22b", @"\uf22a", @"\uf23a", @"\uf223", @"\uf21c", @"\uf22c", @"\uf231", @"\uf213", @"\uf233", @"\uf21a", @"\uf214", @"\uf215", @"\uf216", @"\uf21d", @"\uf239", @"\uf238", @"\uf224", @"\uf225", @"\uf234", @"\uf21b", @"\uf235", @"\uf221", @"\uf226", @"\uf228", @"\uf237", @"\uf1e8", @"\uf1eb", @"\uf1e9"];
});
return fontAwesomeUnicodeStrings;
}
+ (NSDictionary *)enumDictionary {
static NSDictionary *enumDictionary;
static dispatch_once_t enumDictionaryOnceToken;
dispatch_once(&enumDictionaryOnceToken, ^{
NSMutableDictionary *tmp = [[NSMutableDictionary alloc] init];
tmp[@"fa-glass"] = @(FAGlass);
tmp[@"fa-music"] = @(FAMusic);
tmp[@"fa-search"] = @(FASearch);
tmp[@"fa-envelope-o"] = @(FAEnvelopeO);
tmp[@"fa-heart"] = @(FAHeart);
tmp[@"fa-star"] = @(FAStar);
tmp[@"fa-star-o"] = @(FAStarO);
tmp[@"fa-user"] = @(FAUser);
tmp[@"fa-film"] = @(FAFilm);
tmp[@"fa-th-large"] = @(FAThLarge);
tmp[@"fa-th"] = @(FATh);
tmp[@"fa-th-list"] = @(FAThList);
tmp[@"fa-check"] = @(FACheck);
tmp[@"fa-times"] = @(FATimes);
tmp[@"fa-search-plus"] = @(FASearchPlus);
tmp[@"fa-search-minus"] = @(FASearchMinus);
tmp[@"fa-power-off"] = @(FAPowerOff);
tmp[@"fa-signal"] = @(FASignal);
tmp[@"fa-cog"] = @(FACog);
tmp[@"fa-trash-o"] = @(FATrashO);
tmp[@"fa-home"] = @(FAHome);
tmp[@"fa-file-o"] = @(FAFileO);
tmp[@"fa-clock-o"] = @(FAClockO);
tmp[@"fa-road"] = @(FARoad);
tmp[@"fa-download"] = @(FADownload);
tmp[@"fa-arrow-circle-o-down"] = @(FAArrowCircleODown);
tmp[@"fa-arrow-circle-o-up"] = @(FAArrowCircleOUp);
tmp[@"fa-inbox"] = @(FAInbox);
tmp[@"fa-play-circle-o"] = @(FAPlayCircleO);
tmp[@"fa-repeat"] = @(FARepeat);
tmp[@"fa-refresh"] = @(FARefresh);
tmp[@"fa-list-alt"] = @(FAListAlt);
tmp[@"fa-lock"] = @(FALock);
tmp[@"fa-flag"] = @(FAFlag);
tmp[@"fa-headphones"] = @(FAHeadphones);
tmp[@"fa-volume-off"] = @(FAVolumeOff);
tmp[@"fa-volume-down"] = @(FAVolumeDown);
tmp[@"fa-volume-up"] = @(FAVolumeUp);
tmp[@"fa-qrcode"] = @(FAQrcode);
tmp[@"fa-barcode"] = @(FABarcode);
tmp[@"fa-tag"] = @(FATag);
tmp[@"fa-tags"] = @(FATags);
tmp[@"fa-book"] = @(FABook);
tmp[@"fa-bookmark"] = @(FABookmark);
tmp[@"fa-print"] = @(FAPrint);
tmp[@"fa-camera"] = @(FACamera);
tmp[@"fa-font"] = @(FAFont);
tmp[@"fa-bold"] = @(FABold);
tmp[@"fa-italic"] = @(FAItalic);
tmp[@"fa-text-height"] = @(FATextHeight);
tmp[@"fa-text-width"] = @(FATextWidth);
tmp[@"fa-align-left"] = @(FAAlignLeft);
tmp[@"fa-align-center"] = @(FAAlignCenter);
tmp[@"fa-align-right"] = @(FAAlignRight);
tmp[@"fa-align-justify"] = @(FAAlignJustify);
tmp[@"fa-list"] = @(FAList);
tmp[@"fa-outdent"] = @(FAOutdent);
tmp[@"fa-indent"] = @(FAIndent);
tmp[@"fa-video-camera"] = @(FAVideoCamera);
tmp[@"fa-picture-o"] = @(FAPictureO);
tmp[@"fa-pencil"] = @(FAPencil);
tmp[@"fa-map-marker"] = @(FAMapMarker);
tmp[@"fa-adjust"] = @(FAAdjust);
tmp[@"fa-tint"] = @(FATint);
tmp[@"fa-pencil-square-o"] = @(FAPencilSquareO);
tmp[@"fa-share-square-o"] = @(FAShareSquareO);
tmp[@"fa-check-square-o"] = @(FACheckSquareO);
tmp[@"fa-arrows"] = @(FAArrows);
tmp[@"fa-step-backward"] = @(FAStepBackward);
tmp[@"fa-fast-backward"] = @(FAFastBackward);
tmp[@"fa-backward"] = @(FABackward);
tmp[@"fa-play"] = @(FAPlay);
tmp[@"fa-pause"] = @(FAPause);
tmp[@"fa-stop"] = @(FAStop);
tmp[@"fa-forward"] = @(FAForward);
tmp[@"fa-fast-forward"] = @(FAFastForward);
tmp[@"fa-step-forward"] = @(FAStepForward);
tmp[@"fa-eject"] = @(FAEject);
tmp[@"fa-chevron-left"] = @(FAChevronLeft);
tmp[@"fa-chevron-right"] = @(FAChevronRight);
tmp[@"fa-plus-circle"] = @(FAPlusCircle);
tmp[@"fa-minus-circle"] = @(FAMinusCircle);
tmp[@"fa-times-circle"] = @(FATimesCircle);
tmp[@"fa-check-circle"] = @(FACheckCircle);
tmp[@"fa-question-circle"] = @(FAQuestionCircle);
tmp[@"fa-info-circle"] = @(FAInfoCircle);
tmp[@"fa-crosshairs"] = @(FACrosshairs);
tmp[@"fa-times-circle-o"] = @(FATimesCircleO);
tmp[@"fa-check-circle-o"] = @(FACheckCircleO);
tmp[@"fa-ban"] = @(FABan);
tmp[@"fa-arrow-left"] = @(FAArrowLeft);
tmp[@"fa-arrow-right"] = @(FAArrowRight);
tmp[@"fa-arrow-up"] = @(FAArrowUp);
tmp[@"fa-arrow-down"] = @(FAArrowDown);
tmp[@"fa-share"] = @(FAShare);
tmp[@"fa-expand"] = @(FAExpand);
tmp[@"fa-compress"] = @(FACompress);
tmp[@"fa-plus"] = @(FAPlus);
tmp[@"fa-minus"] = @(FAMinus);
tmp[@"fa-asterisk"] = @(FAAsterisk);
tmp[@"fa-exclamation-circle"] = @(FAExclamationCircle);
tmp[@"fa-gift"] = @(FAGift);
tmp[@"fa-leaf"] = @(FALeaf);
tmp[@"fa-fire"] = @(FAFire);
tmp[@"fa-eye"] = @(FAEye);
tmp[@"fa-eye-slash"] = @(FAEyeSlash);
tmp[@"fa-exclamation-triangle"] = @(FAExclamationTriangle);
tmp[@"fa-plane"] = @(FAPlane);
tmp[@"fa-calendar"] = @(FACalendar);
tmp[@"fa-random"] = @(FARandom);
tmp[@"fa-comment"] = @(FAComment);
tmp[@"fa-magnet"] = @(FAMagnet);
tmp[@"fa-chevron-up"] = @(FAChevronUp);
tmp[@"fa-chevron-down"] = @(FAChevronDown);
tmp[@"fa-retweet"] = @(FARetweet);
tmp[@"fa-shopping-cart"] = @(FAShoppingCart);
tmp[@"fa-folder"] = @(FAFolder);
tmp[@"fa-folder-open"] = @(FAFolderOpen);
tmp[@"fa-arrows-v"] = @(FAArrowsV);
tmp[@"fa-arrows-h"] = @(FAArrowsH);
tmp[@"fa-bar-chart-o"] = @(FABarChartO);
tmp[@"fa-twitter-square"] = @(FATwitterSquare);
tmp[@"fa-facebook-square"] = @(FAFacebookSquare);
tmp[@"fa-camera-retro"] = @(FACameraRetro);
tmp[@"fa-key"] = @(FAKey);
tmp[@"fa-cogs"] = @(FACogs);
tmp[@"fa-comments"] = @(FAComments);
tmp[@"fa-thumbs-o-up"] = @(FAThumbsOUp);
tmp[@"fa-thumbs-o-down"] = @(FAThumbsODown);
tmp[@"fa-star-half"] = @(FAStarHalf);
tmp[@"fa-heart-o"] = @(FAHeartO);
tmp[@"fa-sign-out"] = @(FASignOut);
tmp[@"fa-linkedin-square"] = @(FALinkedinSquare);
tmp[@"fa-thumb-tack"] = @(FAThumbTack);
tmp[@"fa-external-link"] = @(FAExternalLink);
tmp[@"fa-sign-in"] = @(FASignIn);
tmp[@"fa-trophy"] = @(FATrophy);
tmp[@"fa-github-square"] = @(FAGithubSquare);
tmp[@"fa-upload"] = @(FAUpload);
tmp[@"fa-lemon-o"] = @(FALemonO);
tmp[@"fa-phone"] = @(FAPhone);
tmp[@"fa-square-o"] = @(FASquareO);
tmp[@"fa-bookmark-o"] = @(FABookmarkO);
tmp[@"fa-phone-square"] = @(FAPhoneSquare);
tmp[@"fa-twitter"] = @(FATwitter);
tmp[@"fa-facebook"] = @(FAFacebook);
tmp[@"fa-github"] = @(FAGithub);
tmp[@"fa-unlock"] = @(FAUnlock);
tmp[@"fa-credit-card"] = @(FACreditCard);
tmp[@"fa-rss"] = @(FARss);
tmp[@"fa-hdd-o"] = @(FAHddO);
tmp[@"fa-bullhorn"] = @(FABullhorn);
tmp[@"fa-bell"] = @(FABell);
tmp[@"fa-certificate"] = @(FACertificate);
tmp[@"fa-hand-o-right"] = @(FAHandORight);
tmp[@"fa-hand-o-left"] = @(FAHandOLeft);
tmp[@"fa-hand-o-up"] = @(FAHandOUp);
tmp[@"fa-hand-o-down"] = @(FAHandODown);
tmp[@"fa-arrow-circle-left"] = @(FAArrowCircleLeft);
tmp[@"fa-arrow-circle-right"] = @(FAArrowCircleRight);
tmp[@"fa-arrow-circle-up"] = @(FAArrowCircleUp);
tmp[@"fa-arrow-circle-down"] = @(FAArrowCircleDown);
tmp[@"fa-globe"] = @(FAGlobe);
tmp[@"fa-wrench"] = @(FAWrench);
tmp[@"fa-tasks"] = @(FATasks);
tmp[@"fa-filter"] = @(FAFilter);
tmp[@"fa-briefcase"] = @(FABriefcase);
tmp[@"fa-arrows-alt"] = @(FAArrowsAlt);
tmp[@"fa-users"] = @(FAUsers);
tmp[@"fa-link"] = @(FALink);
tmp[@"fa-cloud"] = @(FACloud);
tmp[@"fa-flask"] = @(FAFlask);
tmp[@"fa-scissors"] = @(FAScissors);
tmp[@"fa-files-o"] = @(FAFilesO);
tmp[@"fa-paperclip"] = @(FAPaperclip);
tmp[@"fa-floppy-o"] = @(FAFloppyO);
tmp[@"fa-square"] = @(FASquare);
tmp[@"fa-bars"] = @(FABars);
tmp[@"fa-list-ul"] = @(FAListUl);
tmp[@"fa-list-ol"] = @(FAListOl);
tmp[@"fa-strikethrough"] = @(FAStrikethrough);
tmp[@"fa-underline"] = @(FAUnderline);
tmp[@"fa-table"] = @(FATable);
tmp[@"fa-magic"] = @(FAMagic);
tmp[@"fa-truck"] = @(FATruck);
tmp[@"fa-pinterest"] = @(FAPinterest);
tmp[@"fa-pinterest-square"] = @(FAPinterestSquare);
tmp[@"fa-google-plus-square"] = @(FAGooglePlusSquare);
tmp[@"fa-google-plus"] = @(FAGooglePlus);
tmp[@"fa-money"] = @(FAMoney);
tmp[@"fa-caret-down"] = @(FACaretDown);
tmp[@"fa-caret-up"] = @(FACaretUp);
tmp[@"fa-caret-left"] = @(FACaretLeft);
tmp[@"fa-caret-right"] = @(FACaretRight);
tmp[@"fa-columns"] = @(FAColumns);
tmp[@"fa-sort"] = @(FASort);
tmp[@"fa-sort-asc"] = @(FASortAsc);
tmp[@"fa-sort-desc"] = @(FASortDesc);
tmp[@"fa-envelope"] = @(FAEnvelope);
tmp[@"fa-linkedin"] = @(FALinkedin);
tmp[@"fa-undo"] = @(FAUndo);
tmp[@"fa-gavel"] = @(FAGavel);
tmp[@"fa-tachometer"] = @(FATachometer);
tmp[@"fa-comment-o"] = @(FACommentO);
tmp[@"fa-comments-o"] = @(FACommentsO);
tmp[@"fa-bolt"] = @(FABolt);
tmp[@"fa-sitemap"] = @(FASitemap);
tmp[@"fa-umbrella"] = @(FAUmbrella);
tmp[@"fa-clipboard"] = @(FAClipboard);
tmp[@"fa-lightbulb-o"] = @(FALightbulbO);
tmp[@"fa-exchange"] = @(FAExchange);
tmp[@"fa-cloud-download"] = @(FACloudDownload);
tmp[@"fa-cloud-upload"] = @(FACloudUpload);
tmp[@"fa-user-md"] = @(FAUserMd);
tmp[@"fa-stethoscope"] = @(FAStethoscope);
tmp[@"fa-suitcase"] = @(FASuitcase);
tmp[@"fa-bell-o"] = @(FABellO);
tmp[@"fa-coffee"] = @(FACoffee);
tmp[@"fa-cutlery"] = @(FACutlery);
tmp[@"fa-file-text-o"] = @(FAFileTextO);
tmp[@"fa-building-o"] = @(FABuildingO);
tmp[@"fa-hospital-o"] = @(FAHospitalO);
tmp[@"fa-ambulance"] = @(FAAmbulance);
tmp[@"fa-medkit"] = @(FAMedkit);
tmp[@"fa-fighter-jet"] = @(FAFighterJet);
tmp[@"fa-beer"] = @(FABeer);
tmp[@"fa-h-square"] = @(FAHSquare);
tmp[@"fa-plus-square"] = @(FAPlusSquare);
tmp[@"fa-angle-double-left"] = @(FAAngleDoubleLeft);
tmp[@"fa-angle-double-right"] = @(FAAngleDoubleRight);
tmp[@"fa-angle-double-up"] = @(FAAngleDoubleUp);
tmp[@"fa-angle-double-down"] = @(FAAngleDoubleDown);
tmp[@"fa-angle-left"] = @(FAAngleLeft);
tmp[@"fa-angle-right"] = @(FAAngleRight);
tmp[@"fa-angle-up"] = @(FAAngleUp);
tmp[@"fa-angle-down"] = @(FAAngleDown);
tmp[@"fa-desktop"] = @(FADesktop);
tmp[@"fa-laptop"] = @(FALaptop);
tmp[@"fa-tablet"] = @(FATablet);
tmp[@"fa-mobile"] = @(FAMobile);
tmp[@"fa-circle-o"] = @(FACircleO);
tmp[@"fa-quote-left"] = @(FAQuoteLeft);
tmp[@"fa-quote-right"] = @(FAQuoteRight);
tmp[@"fa-spinner"] = @(FASpinner);
tmp[@"fa-circle"] = @(FACircle);
tmp[@"fa-reply"] = @(FAReply);
tmp[@"fa-github-alt"] = @(FAGithubAlt);
tmp[@"fa-folder-o"] = @(FAFolderO);
tmp[@"fa-folder-open-o"] = @(FAFolderOpenO);
tmp[@"fa-smile-o"] = @(FASmileO);
tmp[@"fa-frown-o"] = @(FAFrownO);
tmp[@"fa-meh-o"] = @(FAMehO);
tmp[@"fa-gamepad"] = @(FAGamepad);
tmp[@"fa-keyboard-o"] = @(FAKeyboardO);
tmp[@"fa-flag-o"] = @(FAFlagO);
tmp[@"fa-flag-checkered"] = @(FAFlagCheckered);
tmp[@"fa-terminal"] = @(FATerminal);
tmp[@"fa-code"] = @(FACode);
tmp[@"fa-reply-all"] = @(FAReplyAll);
tmp[@"fa-mail-reply-all"] = @(FAMailReplyAll);
tmp[@"fa-star-half-o"] = @(FAStarHalfO);
tmp[@"fa-location-arrow"] = @(FALocationArrow);
tmp[@"fa-crop"] = @(FACrop);
tmp[@"fa-code-fork"] = @(FACodeFork);
tmp[@"fa-chain-broken"] = @(FAChainBroken);
tmp[@"fa-question"] = @(FAQuestion);
tmp[@"fa-info"] = @(FAInfo);
tmp[@"fa-exclamation"] = @(FAExclamation);
tmp[@"fa-superscript"] = @(FASuperscript);
tmp[@"fa-subscript"] = @(FASubscript);
tmp[@"fa-eraser"] = @(FAEraser);
tmp[@"fa-puzzle-piece"] = @(FAPuzzlePiece);
tmp[@"fa-microphone"] = @(FAMicrophone);
tmp[@"fa-microphone-slash"] = @(FAMicrophoneSlash);
tmp[@"fa-shield"] = @(FAShield);
tmp[@"fa-calendar-o"] = @(FACalendarO);
tmp[@"fa-fire-extinguisher"] = @(FAFireExtinguisher);
tmp[@"fa-rocket"] = @(FARocket);
tmp[@"fa-maxcdn"] = @(FAMaxcdn);
tmp[@"fa-chevron-circle-left"] = @(FAChevronCircleLeft);
tmp[@"fa-chevron-circle-right"] = @(FAChevronCircleRight);
tmp[@"fa-chevron-circle-up"] = @(FAChevronCircleUp);
tmp[@"fa-chevron-circle-down"] = @(FAChevronCircleDown);
tmp[@"fa-html5"] = @(FAHtml5);
tmp[@"fa-css3"] = @(FACss3);
tmp[@"fa-anchor"] = @(FAAnchor);
tmp[@"fa-unlock-alt"] = @(FAUnlockAlt);
tmp[@"fa-bullseye"] = @(FABullseye);
tmp[@"fa-ellipsis-h"] = @(FAEllipsisH);
tmp[@"fa-ellipsis-v"] = @(FAEllipsisV);
tmp[@"fa-rss-square"] = @(FARssSquare);
tmp[@"fa-play-circle"] = @(FAPlayCircle);
tmp[@"fa-ticket"] = @(FATicket);
tmp[@"fa-minus-square"] = @(FAMinusSquare);
tmp[@"fa-minus-square-o"] = @(FAMinusSquareO);
tmp[@"fa-level-up"] = @(FALevelUp);
tmp[@"fa-level-down"] = @(FALevelDown);
tmp[@"fa-check-square"] = @(FACheckSquare);
tmp[@"fa-pencil-square"] = @(FAPencilSquare);
tmp[@"fa-external-link-square"] = @(FAExternalLinkSquare);
tmp[@"fa-share-square"] = @(FAShareSquare);
tmp[@"fa-compass"] = @(FACompass);
tmp[@"fa-caret-square-o-down"] = @(FACaretSquareODown);
tmp[@"fa-caret-square-o-up"] = @(FACaretSquareOUp);
tmp[@"fa-caret-square-o-right"] = @(FACaretSquareORight);
tmp[@"fa-eur"] = @(FAEur);
tmp[@"fa-gbp"] = @(FAGbp);
tmp[@"fa-usd"] = @(FAUsd);
tmp[@"fa-inr"] = @(FAInr);
tmp[@"fa-jpy"] = @(FAJpy);
tmp[@"fa-rub"] = @(FARub);
tmp[@"fa-krw"] = @(FAKrw);
tmp[@"fa-btc"] = @(FABtc);
tmp[@"fa-file"] = @(FAFile);
tmp[@"fa-file-text"] = @(FAFileText);
tmp[@"fa-sort-alpha-asc"] = @(FASortAlphaAsc);
tmp[@"fa-sort-alpha-desc"] = @(FASortAlphaDesc);
tmp[@"fa-sort-amount-asc"] = @(FASortAmountAsc);
tmp[@"fa-sort-amount-desc"] = @(FASortAmountDesc);
tmp[@"fa-sort-numeric-asc"] = @(FASortNumericAsc);
tmp[@"fa-sort-numeric-desc"] = @(FASortNumericDesc);
tmp[@"fa-thumbs-up"] = @(FAThumbsUp);
tmp[@"fa-thumbs-down"] = @(FAThumbsDown);
tmp[@"fa-youtube-square"] = @(FAYoutubeSquare);
tmp[@"fa-youtube"] = @(FAYoutube);
tmp[@"fa-xing"] = @(FAXing);
tmp[@"fa-xing-square"] = @(FAXingSquare);
tmp[@"fa-youtube-play"] = @(FAYoutubePlay);
tmp[@"fa-dropbox"] = @(FADropbox);
tmp[@"fa-stack-overflow"] = @(FAStackOverflow);
tmp[@"fa-instagram"] = @(FAInstagram);
tmp[@"fa-flickr"] = @(FAFlickr);
tmp[@"fa-adn"] = @(FAAdn);
tmp[@"fa-bitbucket"] = @(FABitbucket);
tmp[@"fa-bitbucket-square"] = @(FABitbucketSquare);
tmp[@"fa-tumblr"] = @(FATumblr);
tmp[@"fa-tumblr-square"] = @(FATumblrSquare);
tmp[@"fa-long-arrow-down"] = @(FALongArrowDown);
tmp[@"fa-long-arrow-up"] = @(FALongArrowUp);
tmp[@"fa-long-arrow-left"] = @(FALongArrowLeft);
tmp[@"fa-long-arrow-right"] = @(FALongArrowRight);
tmp[@"fa-apple"] = @(FAApple);
tmp[@"fa-windows"] = @(FAWindows);
tmp[@"fa-android"] = @(FAAndroid);
tmp[@"fa-linux"] = @(FALinux);
tmp[@"fa-dribbble"] = @(FADribbble);
tmp[@"fa-skype"] = @(FASkype);
tmp[@"fa-foursquare"] = @(FAFoursquare);
tmp[@"fa-trello"] = @(FATrello);
tmp[@"fa-female"] = @(FAFemale);
tmp[@"fa-male"] = @(FAMale);
tmp[@"fa-gittip"] = @(FAGittip);
tmp[@"fa-sun-o"] = @(FASunO);
tmp[@"fa-moon-o"] = @(FAMoonO);
tmp[@"fa-archive"] = @(FAArchive);
tmp[@"fa-bug"] = @(FABug);
tmp[@"fa-vk"] = @(FAVk);
tmp[@"fa-weibo"] = @(FAWeibo);
tmp[@"fa-renren"] = @(FARenren);
tmp[@"fa-pagelines"] = @(FAPagelines);
tmp[@"fa-stack-exchange"] = @(FAStackExchange);
tmp[@"fa-arrow-circle-o-right"] = @(FAArrowCircleORight);
tmp[@"fa-arrow-circle-o-left"] = @(FAArrowCircleOLeft);
tmp[@"fa-caret-square-o-left"] = @(FACaretSquareOLeft);
tmp[@"fa-dot-circle-o"] = @(FADotCircleO);
tmp[@"fa-wheelchair"] = @(FAWheelchair);
tmp[@"fa-vimeo-square"] = @(FAVimeoSquare);
tmp[@"fa-try"] = @(FATry);
tmp[@"fa-plus-square-o"] = @(FAPlusSquareO);
/* FontAwesome ver 4.1.0 */
tmp[@"fa-automobile"] = @(FAautomobile);
tmp[@"fa-bank"] = @(FAbank);
tmp[@"fa-behance"] = @(FAbehance);
tmp[@"fa-behance-square"] = @(FAbehanceSquare);
tmp[@"fa-bomb"] = @(FAbomb);
tmp[@"fa-building"] = @(FAbuilding);
tmp[@"fa-cab"] = @(FAcab);
tmp[@"fa-car"] = @(FAcar);
tmp[@"fa-child"] = @(FAchild);
tmp[@"fa-circle-o-notch"] = @(FAcircleONotch);
tmp[@"fa-circle-thin"] = @(FAcircleThin);
tmp[@"fa-codepen"] = @(FAcodepen);
tmp[@"fa-cube"] = @(FAcube);
tmp[@"fa-cubes"] = @(FAcubes);
tmp[@"fa-database"] = @(FAdatabase);
tmp[@"fa-delicious"] = @(FAdelicious);
tmp[@"fa-deviantart"] = @(FAdeviantart);
tmp[@"fa-digg"] = @(FAdigg);
tmp[@"fa-drupal"] = @(FAdrupal);
tmp[@"fa-empire"] = @(FAempire);
tmp[@"fa-envelope-square"] = @(FAenvelopeSquare);
tmp[@"fa-fax"] = @(FAfax);
tmp[@"fa-file-archive-o"] = @(FAfileArchiveO);
tmp[@"fa-file-audio-o"] = @(FAfileAudioO);
tmp[@"fa-file-code-o"] = @(FAfileCodeO);
tmp[@"fa-file-excel-o"] = @(FAfileExcelO);
tmp[@"fa-file-image-o"] = @(FAfileImageO);
tmp[@"fa-file-movie-o"] = @(FAfileMovieO);
tmp[@"fa-file-pdf-o"] = @(FAfilePdfO);
tmp[@"fa-file-photo-o"] = @(FAfilePhotoO);
tmp[@"fa-file-picture-o"] = @(FAfilePictureO);
tmp[@"fa-file-powerpoint-o"] = @(FAfilePowerpointO);
tmp[@"fa-file-sound-o"] = @(FAfileSoundO);
tmp[@"fa-file-video-o"] = @(FAfileVideoO);
tmp[@"fa-file-word-o"] = @(FAfileWordO);
tmp[@"fa-file-zip-o"] = @(FAfileZipO);
tmp[@"fa-ge"] = @(FAge);
tmp[@"fa-git"] = @(FAgit);
tmp[@"fa-git-square"] = @(FAgitSquare);
tmp[@"fa-google"] = @(FAgoogle);
tmp[@"fa-graduation-cap"] = @(FAgraduationCap);
tmp[@"fa-hacker-news"] = @(FAhackerNews);
tmp[@"fa-header"] = @(FAheader);
tmp[@"fa-history"] = @(FAhistory);
tmp[@"fa-institution"] = @(FAinstitution);
tmp[@"fa-joomla"] = @(FAjoomla);
tmp[@"fa-jsfiddle"] = @(FAjsfiddle);
tmp[@"fa-language"] = @(FAlanguage);
tmp[@"fa-life-bouy"] = @(FAlifeBouy);
tmp[@"fa-life-ring"] = @(FAlifeRing);
tmp[@"fa-life-saver"] = @(FAlifeSaver);
tmp[@"fa-mortar-board"] = @(FAmortarBoard);
tmp[@"fa-openid"] = @(FAopenid);
tmp[@"fa-paper-plane"] = @(FApaperPlane);
tmp[@"fa-paper-plane-o"] = @(FApaperPlaneO);
tmp[@"fa-paragraph"] = @(FAparagraph);
tmp[@"fa-paw"] = @(FApaw);
tmp[@"fa-pied-piper"] = @(FApiedPiper);
tmp[@"fa-pied-piper-alt"] = @(FApiedPiperalt);
tmp[@"fa-pied-piper-square"] = @(FApiedPipersquare);
tmp[@"fa-qq"] = @(FAqq);
tmp[@"fa-ra"] = @(FAra);
tmp[@"fa-rebel"] = @(FArebel);
tmp[@"fa-recycle"] = @(FArecycle);
tmp[@"fa-reddit"] = @(FAreddit);
tmp[@"fa-reddit-square"] = @(FAredditSquare);
tmp[@"fa-send"] = @(FAsend);
tmp[@"fa-send-o"] = @(FAsendO);
tmp[@"fa-share-alt"] = @(FAshareAlt);
tmp[@"fa-share-alt-square"] = @(FAshareAltSquare);
tmp[@"fa-slack"] = @(FAslack);
tmp[@"fa-sliders"] = @(FAsliders);
tmp[@"fa-soundcloud"] = @(FAsoundcloud);
tmp[@"fa-space-shuttle"] = @(FAspaceShuttle);
tmp[@"fa-spoon"] = @(FAspoon);
tmp[@"fa-spotify"] = @(FAspotify);
tmp[@"fa-steam"] = @(FAsteam);
tmp[@"fa-steam-square"] = @(FAsteamSquare);
tmp[@"fa-stumbleupon"] = @(FAstumbleupon);
tmp[@"fa-stumbleupon-circle"] = @(FAstumbleuponCircle);
tmp[@"fa-support"] = @(FAsupport);
tmp[@"fa-taxi"] = @(FAtaxi);
tmp[@"fa-tencent-weibo"] = @(FAtencentWeibo);
tmp[@"fa-tree"] = @(FAtree);
tmp[@"fa-university"] = @(FAuniversity);
tmp[@"fa-vine"] = @(FAvine);
tmp[@"fa-wechat"] = @(FAwechat);
tmp[@"fa-weixin"] = @(FAweixin);
tmp[@"fa-wordpress"] = @(FAwordpress);
tmp[@"fa-yahoo"] = @(FAyahoo);
/* FontAwesome ver 4.2.0 */
tmp[@"fa-angellist"] = @(FAangellist);
tmp[@"fa-area-chart"] = @(FAareaChart);
tmp[@"fa-at"] = @(FAat);
tmp[@"fa-bell-slash"] = @(FAbellSlash);
tmp[@"fa-bell-slash-o"] = @(FAbellSlashO);
tmp[@"fa-bicycle"] = @(FAbicycle);
tmp[@"fa-binoculars"] = @(FAbinoculars);
tmp[@"fa-birthday-cake"] = @(FAbirthdayCake);
tmp[@"fa-bus"] = @(FAbus);
tmp[@"fa-calculator"] = @(FAcalculator);
tmp[@"fa-cc"] = @(FAcc);
tmp[@"fa-cc-amex"] = @(FAccAmex);
tmp[@"fa-cc-discover"] = @(FAccDiscover);
tmp[@"fa-cc-mastercard"] = @(FAccMastercard);
tmp[@"fa-cc-paypal"] = @(FAccPaypal);
tmp[@"fa-cc-stripe"] = @(FAccStripe);
tmp[@"fa-cc-visa"] = @(FAccVisa);
tmp[@"fa-copyright"] = @(FAcopyright);
tmp[@"fa-eyedropper"] = @(FAeyedropper);
tmp[@"fa-futbol-o"] = @(FAfutbolO);
tmp[@"fa-google-wallet"] = @(FAgoogleWallet);
tmp[@"fa-ils"] = @(FAils);
tmp[@"fa-ioxhost"] = @(FAioxhost);
tmp[@"fa-lastfm"] = @(FAlastfm);
tmp[@"fa-lastfm-square"] = @(FAlastfmSquare);
tmp[@"fa-line-chart"] = @(FAlineChart);
tmp[@"fa-meanpath"] = @(FAmeanpath);
tmp[@"fa-newspaper-o"] = @(FAnewspaperO);
tmp[@"fa-paint-brush"] = @(FApaintBrush);
tmp[@"fa-paypal"] = @(FApaypal);
tmp[@"fa-pie-chart"] = @(FApieChart);
tmp[@"fa-plug"] = @(FAplug);
tmp[@"fa-shekel"] = @(FAshekel);
tmp[@"fa-sheqel"] = @(FAsheqel);
tmp[@"fa-slideshare"] = @(FAslideshare);
tmp[@"fa-soccer-ball-o"] = @(FAsoccerBallO);
tmp[@"fa-toggle-off"] = @(FAtoggleOff);
tmp[@"fa-toggle-on"] = @(FAtoggleOn);
tmp[@"fa-trash"] = @(FAtrash);
tmp[@"fa-tty"] = @(FAtty);
tmp[@"fa-twitch"] = @(FAtwitch);
tmp[@"fa-wifi"] = @(FAwifi);
tmp[@"fa-yelp"] = @(FAyelp);
/* FontAwesome ver 4.3.0 */
tmp[@"fa-bed"] = @(FAbed);
tmp[@"fa-buysellads"] = @(FAbuysellads);
tmp[@"fa-cart-arrow-down"] = @(FAcartArrowDown);
tmp[@"fa-cart-plus"] = @(FAcartPlus);
tmp[@"fa-connectdevelop"] = @(FAconnectdevelop);
tmp[@"fa-dashcube"] = @(FAdashcube);
tmp[@"fa-diamond"] = @(FAdiamond);
tmp[@"fa-facebook-official"] = @(FAfacebookOfficial);
tmp[@"fa-forumbee"] = @(FAforumbee);
tmp[@"fa-heartbeat"] = @(FAheartbeat);
tmp[@"fa-hotel"] = @(FAhotel);
tmp[@"fa-leanpub"] = @(FAleanpub);
tmp[@"fa-mars"] = @(FAmars);
tmp[@"fa-mars-double"] = @(FAmarsDouble);
tmp[@"fa-mars-stroke"] = @(FAmarsStroke);
tmp[@"fa-mars-stroke-h"] = @(FAmarsStrokeH);
tmp[@"fa-mars-stroke-v"] = @(FAmarsStrokeV);
tmp[@"fa-medium"] = @(FAmedium);
tmp[@"fa-mercury"] = @(FAmercury);
tmp[@"fa-motorcycle"] = @(FAmotorcycle);
tmp[@"fa-neuter"] = @(FAneuter);
tmp[@"fa-pinterest-p"] = @(FApinterestP);
tmp[@"fa-sellsy"] = @(FAsellsy);
tmp[@"fa-server"] = @(FAserver);
tmp[@"fa-ship"] = @(FAship);
tmp[@"fa-shirtsinbulk"] = @(FAshirtsinbulk);
tmp[@"fa-simplybuilt"] = @(FAsimplybuilt);
tmp[@"fa-skyatlas"] = @(FAskyatlas);
tmp[@"fa-street-view"] = @(FAstreetView);
tmp[@"fa-subway"] = @(FAsubway);
tmp[@"fa-train"] = @(FAtrain);
tmp[@"fa-transgender"] = @(FAtransgender);
tmp[@"fa-transgender-alt"] = @(FAtransgenderAlt);
tmp[@"fa-user-plus"] = @(FAuserPlus);
tmp[@"fa-user-secret"] = @(FAuserSecret);
tmp[@"fa-user-times"] = @(FAuserTimes);
tmp[@"fa-venus"] = @(FAvenus);
tmp[@"fa-venus-double"] = @(FAvenusDouble);
tmp[@"fa-venus-mars"] = @(FAvenusMars);
tmp[@"fa-viacoin"] = @(FAviacoin);
enumDictionary = tmp;
});
return enumDictionary;
}
@end

48
Pods/FontAwesome+iOS/README.md generated Normal file
View file

@ -0,0 +1,48 @@
FontAwesome+iOS
===================
Font awesome is an iconic font. Read more about it on http://fortawesome.github.com/Font-Awesome/
This category brings this great iconic font on iOS.
Usage
--------------------
First, make sure you have `FontAwesome.ttf` bundled in your project and that `UIAppFonts` key in the project's plist file contains a String item named `FontAwesome.ttf`
Then add the `NSString+FontAwesome` category to the project.
UILabel *label = [...]
label.font = [UIFont fontWithName:kFontAwesomeFamilyName size:20];
You can now use enums for all the different iconic characters
label.text = [NSString fontAwesomeIconStringForEnum:FAGithub];
or you can reference them by using the class identifiers listed here http://fortawesome.github.com/Font-Awesome/#all-icons
label.text = [NSString fontAwesomeIconStringForIconIdentifier:@"fa-github"];
or you can add the `UIImage+FontAwesome` category to generate icon image directly
UIImage *github = [UIImage imageWithIcon:@"fa-github" backgroundColor:[UIColor purpleColor] iconColor:[UIColor colorWithRed:0.9 green:0.9 blue:0.9 alpha:255] iconScale:2.f fontSize:20];
then you will get an icon like this
![image](Resources/fontawesome-github.png)
That's all.
Have a look at the small demo project for further information.
FAImageView
--------------------
FAImageView is now extended and contains a new property called `defaultView` that is shown when the image is set to nil.
It is possible to use one the font-awesome icon as a default placeholder for an image view.
FAImageView *imageView = [[FAImageView alloc] initWithFrame:CGRectMake(0.f, 0.f, 100.f, 100.f)];
imageView.image = nil;
[imageView setDefaultIconIdentifier:@"fa-github"];
License
-------------------
This project uses the FontAwesome fix made by Pit Garbe that you can find at https://github.com/leberwurstsaft/FontAwesome-for-iOS Version 2.0 of the Font Awesome font, CSS, and LESS files are licensed under CC BY 3.0: http://creativecommons.org/licenses/by/3.0/ A mention of 'Font Awesome - http://fortawesome.github.com/Font-Awesome' in human-readable source code is considered acceptable attribution (most common on the web). If human readable source code is not available to the end user, a mention in an 'About' or 'Credits' screen is considered acceptable (most common in desktop or mobile software)

Binary file not shown.

View file

@ -0,0 +1,34 @@
//
// UIFont+FontAwesome.m
//
// Copyright (c) 2012 Alex Usbergo. All rights reserved.
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
#import <UIKit/UIKit.h>
@interface UIFont (FontAwesome)
/**
@abstract Returns the FontAwesome iconic font.
*/
+ (UIFont*)fontAwesomeFontOfSize:(CGFloat)size;
@end

View file

@ -0,0 +1,21 @@
//
// UIFont+FontAwesome.m
// FontAwesome-iOS Demo
//
// Created by Alex Usbergo on 1/16/13.
// Copyright (c) 2013 Alex Usbergo. All rights reserved.
//
#import "UIFont+FontAwesome.h"
#import "NSString+FontAwesome.h"
@implementation UIFont (FontAwesome)
#pragma mark - Public API
+ (UIFont*)fontAwesomeFontOfSize:(CGFloat)size {
UIFont *font = [UIFont fontWithName:kFontAwesomeFamilyName size:size];
NSAssert(font!=nil, @"%@ couldn't be loaded",kFontAwesomeFamilyName);
return font;
}
@end

View file

@ -0,0 +1,36 @@
//
// UIImage+UIImage_FontAwesome.h
// FontAwesome-iOS Demo
//
// Created by Pedro Piñera Buendía on 22/08/13.
// Copyright (c) 2013 Alex Usbergo. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface UIImage (FontAwesome)
/**
* This method generates an UIImage with a given FontAwesomeIcon and format parameters
*
* @param identifier NSString that identifies the icon
* @param bgColor UIColor for background image Color
* @param iconColor UIColor for icon color
* @param scale Scale factor between the image size and the icon size
* @param size Size of the image to be generated
*
* @return Image to be used wherever you want
*/
+(UIImage*)imageWithIcon:(NSString*)identifier backgroundColor:(UIColor*)bgColor iconColor:(UIColor*)iconColor andSize:(CGSize)size;
/**
* This method generates an UIImage with a given FontAwesomeIcon and format parameters
*
* @param identifier NSString that identifies the icon
* @param bgColor UIColor for background image Color
* @param iconColor UIColor for icon color
* @param scale Scale factor between the image size and the icon size
* @param fontSize Font size used to be generate the image
*
* @return Image to be used wherever you want
*/
+(UIImage*)imageWithIcon:(NSString*)identifier backgroundColor:(UIColor*)bgColor iconColor:(UIColor*)iconColor fontSize:(int)fontSize;
@end

134
Pods/FontAwesome+iOS/UIImage+FontAwesome.m generated Normal file
View file

@ -0,0 +1,134 @@
//
// UIImage+UIImage_FontAwesome.m
// FontAwesome-iOS Demo
//
// Created by Pedro Piñera Buendía on 22/08/13.
// Copyright (c) 2013 Alex Usbergo. All rights reserved.
//
#import "UIImage+FontAwesome.h"
#import "NSString+FontAwesome.h"
int fa_constraintLabelToSize(UILabel *label, CGSize size, int maxFontSize, int minFontSize)
{
// Set the frame of the label to the targeted rectangle
CGRect rect = CGRectMake(0, 0, size.width, size.height);
label.frame = rect;
// Try all font sizes from largest to smallest font size
int fontSize = maxFontSize;
// Fit label width wize
CGSize constraintSize = CGSizeMake(label.frame.size.width, MAXFLOAT);
do {
// Set current font size
label.font = [UIFont fontWithName:label.font.fontName size:fontSize];
// Find label size for current font size
CGRect textRect = [[label text] boundingRectWithSize:constraintSize
options:NSStringDrawingUsesFontLeading
attributes:@{NSFontAttributeName:label.font}
context:nil];
// Done, if created label is within target size
if( textRect.size.height <= label.frame.size.height )
break;
// Decrease the font size and try again
fontSize -= 2;
} while (fontSize > minFontSize);
return fontSize;
}
@implementation UIImage (UIImage_FontAwesome)
+(UIImage*)imageWithIcon:(NSString*)identifier backgroundColor:(UIColor*)bgColor iconColor:(UIColor*)iconColor andSize:(CGSize)size{
if (!bgColor) {
bgColor = [UIColor clearColor];
}
if (!iconColor) {
iconColor = [UIColor whiteColor];
}
UIGraphicsBeginImageContextWithOptions(size, NO, 0.0f);
//// Abstracted Attributes
NSString* textContent = [NSString fontAwesomeIconStringForIconIdentifier:identifier];
CGRect textRect = CGRectZero;
textRect.size = size;
//// Retangle Drawing
UIBezierPath *path = [UIBezierPath bezierPathWithRect:textRect];
[bgColor setFill];
[path fill];
//// Text Drawing
int fontSize = size.width;
UIFont *font = [UIFont fontWithName:kFontAwesomeFamilyName size:fontSize];
@autoreleasepool {
UILabel *label = [UILabel new];
label.font = font;
label.text = textContent;
fontSize = fa_constraintLabelToSize(label, size, 500, 5);
font = label.font;
}
[iconColor setFill];
[textContent drawInRect:textRect withAttributes:@{NSFontAttributeName : font,
NSForegroundColorAttributeName : iconColor,
NSBackgroundColorAttributeName : bgColor
}];
//Image returns
UIImage * image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return image;
}
+(UIImage*)imageWithIcon:(NSString*)identifier backgroundColor:(UIColor*)bgColor iconColor:(UIColor*)iconColor fontSize:(int)fontSize
{
if (!bgColor) {
bgColor = [UIColor clearColor];
}
if (!iconColor) {
iconColor = [UIColor whiteColor];
}
//// Abstracted Attributes
NSString* textContent = [NSString fontAwesomeIconStringForIconIdentifier:identifier];
UIFont *font = [UIFont fontWithName:kFontAwesomeFamilyName size:fontSize];
NSDictionary *attributes = @{NSFontAttributeName : font,
NSForegroundColorAttributeName : iconColor,
NSBackgroundColorAttributeName : bgColor,
};
//// Content Edge Insets
CGSize size = [textContent sizeWithAttributes:attributes];
size = CGSizeMake(size.width * 1.1, size.height * 1.05);
CGRect textRect = CGRectZero;
textRect.size = size;
CGPoint origin = CGPointMake(size.width * 0.05, size.height * 0.025);
UIGraphicsBeginImageContextWithOptions(size, NO, 0.0f);
//// Rectangle Drawing
UIBezierPath *path = [UIBezierPath bezierPathWithRect:textRect];
[bgColor setFill];
[path fill];
//// Text Drawing
[textContent drawAtPoint:origin withAttributes:attributes];
//Image returns
UIImage * image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return image;
}
@end

View file

@ -0,0 +1 @@
../../../FontAwesome+iOS/FAImageView.h

View file

@ -0,0 +1 @@
../../../FontAwesome+iOS/NSString+FontAwesome.h

View file

@ -0,0 +1 @@
../../../FontAwesome+iOS/UIFont+FontAwesome.h

View file

@ -0,0 +1 @@
../../../FontAwesome+iOS/UIImage+FontAwesome.h

View file

@ -0,0 +1 @@
../../../FontAwesome+iOS/FAImageView.h

View file

@ -0,0 +1 @@
../../../FontAwesome+iOS/NSString+FontAwesome.h

View file

@ -0,0 +1 @@
../../../FontAwesome+iOS/UIFont+FontAwesome.h

View file

@ -0,0 +1 @@
../../../FontAwesome+iOS/UIImage+FontAwesome.h

View file

@ -0,0 +1,29 @@
{
"name": "FontAwesome+iOS",
"version": "0.0.1",
"summary": "Category that makes FontAwesome even easier for iOS.",
"homepage": "https://github.com/alexdrone/ios-fontawesome",
"license": {
"type": "Private",
"text": "This project uses the FontAwesome fix made by Pit Garbe that you can find at https://github.com/leberwurstsaft/FontAwesome-for-iOS Version 2.0 of the Font Awesome font, CSS, and LESS files are licensed under CC BY 3.0: http://creativecommons.org/licenses/by/3.0/ A mention of 'Font Awesome - http://fortawesome.github.com/Font-Awesome' in human-readable source code is considered acceptable attribution (most common on the web). If human readable source code is not available to the end user, a mention in an 'About' or 'Credits' screen is considered acceptable (most common in desktop or mobile software)\n"
},
"authors": {
"Alex Usbergo": "alexakadrone@gmail.com"
},
"source": {
"git": "https://github.com/alexdrone/ios-fontawesome.git",
"commit": "3b1521af4d40e69d4ebb0547e0eae1a4713dedb6"
},
"platforms": {
"ios": "5.0"
},
"source_files": "*.{h,m}",
"exclude_files": "Demo",
"resources": "Resources/*.ttf",
"frameworks": [
"UIKit",
"Foundation",
"CoreGraphics"
],
"requires_arc": true
}

14
Pods/Manifest.lock generated
View file

@ -7,6 +7,7 @@ PODS:
- dyci (0.1.5.6):
- dyci/Injections (= 0.1.5.6)
- dyci/Injections (0.1.5.6)
- FontAwesome+iOS (0.0.1)
- libextobjc (0.4.1):
- libextobjc/EXTADT (= 0.4.1)
- libextobjc/EXTConcreteProtocol (= 0.4.1)
@ -96,15 +97,26 @@ PODS:
DEPENDENCIES:
- dyci
- FontAwesome+iOS (from `https://github.com/alexdrone/ios-fontawesome.git`)
- libextobjc
- Mantle
- ObjectiveSugar
- PromiseKit
- YapDatabase
EXTERNAL SOURCES:
FontAwesome+iOS:
:git: https://github.com/alexdrone/ios-fontawesome.git
CHECKOUT OPTIONS:
FontAwesome+iOS:
:commit: 432e193b5a776d7283ec4f0e7b238eee46787153
:git: https://github.com/alexdrone/ios-fontawesome.git
SPEC CHECKSUMS:
CocoaLumberjack: 628fca2e88ef06f7cf6817309aa405f325d9a6fa
dyci: 099c2e6dc98abb8f21b370cabbf1443ff700608a
FontAwesome+iOS: c6d3bbd2856b9633028d316d56133d45fb6a6cb0
libextobjc: a650fc1bf489a3d3a9bc2e621efa3e1006fc5471
Mantle: 17de73ef929db2234d76fde2aacfb89ab11c61e8
ObjectiveSugar: a6a25f23d657c19df0a0b972466d5b5ca9f5295c
@ -112,4 +124,4 @@ SPEC CHECKSUMS:
PromiseKit: b333c1baae651ed1fdfb4f6f4ef18d7ca118931e
YapDatabase: 13566c87dc9226a0f15d755edba08e8ad94cac9f
COCOAPODS: 0.37.0.rc.2
COCOAPODS: 0.37.0

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
#include "Pods-Blog-CocoaLumberjack.xcconfig"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/CocoaLumberjack" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/CocoaLumberjack" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/FontAwesome+iOS" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
OTHER_LDFLAGS = -ObjC
PODS_ROOT = ${SRCROOT}
SKIP_INSTALL = YES

View file

@ -0,0 +1,6 @@
#include "Pods-Blog-FontAwesome+iOS.xcconfig"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/FontAwesome+iOS" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/FontAwesome+iOS" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
OTHER_LDFLAGS = ${PODS_BLOG_FONTAWESOME_IOS_OTHER_LDFLAGS} -ObjC
PODS_ROOT = ${SRCROOT}
SKIP_INSTALL = YES

View file

@ -0,0 +1,5 @@
#import <Foundation/Foundation.h>
@interface PodsDummy_Pods_Blog_FontAwesome_iOS : NSObject
@end
@implementation PodsDummy_Pods_Blog_FontAwesome_iOS
@end

View file

@ -0,0 +1,5 @@
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#endif
#import "Pods-Blog-environment.h"

View file

@ -0,0 +1 @@
PODS_BLOG_FONTAWESOME_IOS_OTHER_LDFLAGS = -framework "CoreGraphics" -framework "Foundation" -framework "UIKit"

View file

@ -1,6 +1,6 @@
#include "Pods-Blog-Mantle.xcconfig"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/Mantle" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/Mantle" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/FontAwesome+iOS" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
OTHER_LDFLAGS = ${PODS_BLOG_MANTLE_OTHER_LDFLAGS} -ObjC
PODS_ROOT = ${SRCROOT}
SKIP_INSTALL = YES

View file

@ -1,6 +1,6 @@
#include "Pods-Blog-OMGHTTPURLRQ.xcconfig"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/FontAwesome+iOS" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
OTHER_LDFLAGS = -ObjC
PODS_ROOT = ${SRCROOT}
SKIP_INSTALL = YES

View file

@ -1,6 +1,6 @@
#include "Pods-Blog-ObjectiveSugar.xcconfig"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/ObjectiveSugar" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/ObjectiveSugar" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/FontAwesome+iOS" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
OTHER_LDFLAGS = -ObjC
PODS_ROOT = ${SRCROOT}
SKIP_INSTALL = YES

View file

@ -1,6 +1,6 @@
#include "Pods-Blog-PromiseKit.xcconfig"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 ${PODS_BLOG_PROMISEKIT_GCC_PREPROCESSOR_DEFINITIONS}
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/PromiseKit" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/PromiseKit" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/FontAwesome+iOS" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
OTHER_LDFLAGS = ${PODS_BLOG_PROMISEKIT_OTHER_LDFLAGS} -ObjC
PODS_ROOT = ${SRCROOT}
SKIP_INSTALL = YES

View file

@ -1,6 +1,6 @@
#include "Pods-Blog-YapDatabase.xcconfig"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/YapDatabase" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/YapDatabase" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/FontAwesome+iOS" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
OTHER_LDFLAGS = ${PODS_BLOG_YAPDATABASE_OTHER_LDFLAGS} -ObjC
PODS_ROOT = ${SRCROOT}
SKIP_INSTALL = YES

View file

@ -1,6 +1,6 @@
#include "Pods-Blog-dyci.xcconfig"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/dyci" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/dyci" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/FontAwesome+iOS" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
OTHER_LDFLAGS = -ObjC
PODS_ROOT = ${SRCROOT}
SKIP_INSTALL = YES

View file

@ -1,6 +1,6 @@
#include "Pods-Blog-libextobjc.xcconfig"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/libextobjc" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Private/libextobjc" "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/FontAwesome+iOS" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
OTHER_LDFLAGS = -ObjC
PODS_ROOT = ${SRCROOT}
SKIP_INSTALL = YES

View file

@ -22,6 +22,11 @@ with or without modification, are permitted provided that the following conditio
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
## FontAwesome+iOS
This project uses the FontAwesome fix made by Pit Garbe that you can find at https://github.com/leberwurstsaft/FontAwesome-for-iOS Version 2.0 of the Font Awesome font, CSS, and LESS files are licensed under CC BY 3.0: http://creativecommons.org/licenses/by/3.0/ A mention of 'Font Awesome - http://fortawesome.github.com/Font-Awesome' in human-readable source code is considered acceptable attribution (most common on the web). If human readable source code is not available to the end user, a mention in an 'About' or 'Credits' screen is considered acceptable (most common in desktop or mobile software)
## Mantle
**Copyright (c) GitHub, Inc.**

View file

@ -37,6 +37,15 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
<string>This project uses the FontAwesome fix made by Pit Garbe that you can find at https://github.com/leberwurstsaft/FontAwesome-for-iOS Version 2.0 of the Font Awesome font, CSS, and LESS files are licensed under CC BY 3.0: http://creativecommons.org/licenses/by/3.0/ A mention of 'Font Awesome - http://fortawesome.github.com/Font-Awesome' in human-readable source code is considered acceptable attribution (most common on the web). If human readable source code is not available to the end user, a mention in an 'About' or 'Credits' screen is considered acceptable (most common in desktop or mobile software)
</string>
<key>Title</key>
<string>FontAwesome+iOS</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
<string>**Copyright (c) GitHub, Inc.**

View file

@ -24,6 +24,12 @@
#define COCOAPODS_VERSION_MINOR_CocoaLumberjack_Extensions 9
#define COCOAPODS_VERSION_PATCH_CocoaLumberjack_Extensions 2
// FontAwesome+iOS
#define COCOAPODS_POD_AVAILABLE_FontAwesome_iOS
#define COCOAPODS_VERSION_MAJOR_FontAwesome_iOS 0
#define COCOAPODS_VERSION_MINOR_FontAwesome_iOS 0
#define COCOAPODS_VERSION_PATCH_FontAwesome_iOS 1
// Mantle
#define COCOAPODS_POD_AVAILABLE_Mantle
#define COCOAPODS_VERSION_MAJOR_Mantle 2

View file

@ -57,6 +57,12 @@ install_resource()
;;
esac
}
if [[ "$CONFIGURATION" == "Debug" ]]; then
install_resource "FontAwesome+iOS/Resources/FontAwesome.ttf"
fi
if [[ "$CONFIGURATION" == "Release" ]]; then
install_resource "FontAwesome+iOS/Resources/FontAwesome.ttf"
fi
rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${CONFIGURATION_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"
if [[ "${ACTION}" == "install" ]]; then

View file

@ -1,6 +1,6 @@
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 $(inherited) PMK_CALAYER=1 $(inherited) PMK_NSNOTIFICATIONCENTER=1 $(inherited) PMK_NSURLCONNECTION=1 $(inherited) PMK_PAUSE=1 $(inherited) PMK_UIACTIONSHEET=1 $(inherited) PMK_UIALERTVIEW=1 $(inherited) PMK_UIVIEW=1 $(inherited) PMK_UIVIEWCONTROLLER=1 $(inherited) PMK_UNTIL=1 $(inherited) PMK_WHEN=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/CocoaLumberjack" -isystem "${PODS_ROOT}/Headers/Public/Mantle" -isystem "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" -isystem "${PODS_ROOT}/Headers/Public/ObjectiveSugar" -isystem "${PODS_ROOT}/Headers/Public/PromiseKit" -isystem "${PODS_ROOT}/Headers/Public/YapDatabase" -isystem "${PODS_ROOT}/Headers/Public/dyci" -isystem "${PODS_ROOT}/Headers/Public/libextobjc"
OTHER_LDFLAGS = $(inherited) -ObjC -weak_library /usr/lib/libc++.dylib -l"Pods-Blog-CocoaLumberjack" -l"Pods-Blog-Mantle" -l"Pods-Blog-OMGHTTPURLRQ" -l"Pods-Blog-ObjectiveSugar" -l"Pods-Blog-PromiseKit" -l"Pods-Blog-YapDatabase" -l"Pods-Blog-dyci" -l"Pods-Blog-libextobjc" -l"sqlite3" -framework "Foundation" -framework "QuartzCore" -framework "UIKit" -weak_framework "AssetsLibrary"
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/FontAwesome+iOS" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/CocoaLumberjack" -isystem "${PODS_ROOT}/Headers/Public/FontAwesome+iOS" -isystem "${PODS_ROOT}/Headers/Public/Mantle" -isystem "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" -isystem "${PODS_ROOT}/Headers/Public/ObjectiveSugar" -isystem "${PODS_ROOT}/Headers/Public/PromiseKit" -isystem "${PODS_ROOT}/Headers/Public/YapDatabase" -isystem "${PODS_ROOT}/Headers/Public/dyci" -isystem "${PODS_ROOT}/Headers/Public/libextobjc"
OTHER_LDFLAGS = $(inherited) -ObjC -weak_library /usr/lib/libc++.dylib -l"Pods-Blog-CocoaLumberjack" -l"Pods-Blog-FontAwesome+iOS" -l"Pods-Blog-Mantle" -l"Pods-Blog-OMGHTTPURLRQ" -l"Pods-Blog-ObjectiveSugar" -l"Pods-Blog-PromiseKit" -l"Pods-Blog-YapDatabase" -l"Pods-Blog-dyci" -l"Pods-Blog-libextobjc" -l"sqlite3" -framework "CoreGraphics" -framework "Foundation" -framework "QuartzCore" -framework "UIKit" -weak_framework "AssetsLibrary"
OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS)
PODS_ROOT = ${SRCROOT}/Pods

View file

@ -1,6 +1,6 @@
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 $(inherited) PMK_CALAYER=1 $(inherited) PMK_NSNOTIFICATIONCENTER=1 $(inherited) PMK_NSURLCONNECTION=1 $(inherited) PMK_PAUSE=1 $(inherited) PMK_UIACTIONSHEET=1 $(inherited) PMK_UIALERTVIEW=1 $(inherited) PMK_UIVIEW=1 $(inherited) PMK_UIVIEWCONTROLLER=1 $(inherited) PMK_UNTIL=1 $(inherited) PMK_WHEN=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/CocoaLumberjack" -isystem "${PODS_ROOT}/Headers/Public/Mantle" -isystem "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" -isystem "${PODS_ROOT}/Headers/Public/ObjectiveSugar" -isystem "${PODS_ROOT}/Headers/Public/PromiseKit" -isystem "${PODS_ROOT}/Headers/Public/YapDatabase" -isystem "${PODS_ROOT}/Headers/Public/dyci" -isystem "${PODS_ROOT}/Headers/Public/libextobjc"
OTHER_LDFLAGS = $(inherited) -ObjC -weak_library /usr/lib/libc++.dylib -l"Pods-Blog-CocoaLumberjack" -l"Pods-Blog-Mantle" -l"Pods-Blog-OMGHTTPURLRQ" -l"Pods-Blog-ObjectiveSugar" -l"Pods-Blog-PromiseKit" -l"Pods-Blog-YapDatabase" -l"Pods-Blog-dyci" -l"Pods-Blog-libextobjc" -l"sqlite3" -framework "Foundation" -framework "QuartzCore" -framework "UIKit" -weak_framework "AssetsLibrary"
HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/CocoaLumberjack" "${PODS_ROOT}/Headers/Public/FontAwesome+iOS" "${PODS_ROOT}/Headers/Public/Mantle" "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" "${PODS_ROOT}/Headers/Public/ObjectiveSugar" "${PODS_ROOT}/Headers/Public/PromiseKit" "${PODS_ROOT}/Headers/Public/YapDatabase" "${PODS_ROOT}/Headers/Public/dyci" "${PODS_ROOT}/Headers/Public/libextobjc"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/CocoaLumberjack" -isystem "${PODS_ROOT}/Headers/Public/FontAwesome+iOS" -isystem "${PODS_ROOT}/Headers/Public/Mantle" -isystem "${PODS_ROOT}/Headers/Public/OMGHTTPURLRQ" -isystem "${PODS_ROOT}/Headers/Public/ObjectiveSugar" -isystem "${PODS_ROOT}/Headers/Public/PromiseKit" -isystem "${PODS_ROOT}/Headers/Public/YapDatabase" -isystem "${PODS_ROOT}/Headers/Public/dyci" -isystem "${PODS_ROOT}/Headers/Public/libextobjc"
OTHER_LDFLAGS = $(inherited) -ObjC -weak_library /usr/lib/libc++.dylib -l"Pods-Blog-CocoaLumberjack" -l"Pods-Blog-FontAwesome+iOS" -l"Pods-Blog-Mantle" -l"Pods-Blog-OMGHTTPURLRQ" -l"Pods-Blog-ObjectiveSugar" -l"Pods-Blog-PromiseKit" -l"Pods-Blog-YapDatabase" -l"Pods-Blog-dyci" -l"Pods-Blog-libextobjc" -l"sqlite3" -framework "CoreGraphics" -framework "Foundation" -framework "QuartzCore" -framework "UIKit" -weak_framework "AssetsLibrary"
OTHER_LIBTOOLFLAGS = $(OTHER_LDFLAGS)
PODS_ROOT = ${SRCROOT}/Pods