Comments (10)
Which APIs are you trying to access? You should only use the APIs from the auto-generated class.
from iconic.
This one in particular: Iconic.registerFont("FontAwesome", map: FontAwesomeIconMap)
But in general I've notice that I can't even extend using extension because the entire class is set as internal by default.
from iconic.
Isn't this related to #33?
from iconic.
No, that's an unrelated to #33.
The ReadMe file shows this:
You can also register the font with its family name and unicode mapping:
Iconic.registerFont("FontAwesome", map: FontAwesomeIconMap)
But registerFont method is not exposed as public.
from iconic.
Totally forgot to update the docs. Sorry about that!
from iconic.
In theory, you should not need to call Iconic.registerFont("FontAwesome", map: FontAwesomeIconMap)
anymore since registerIconFont()
does it for you internally.
from iconic.
Got it. while we're at it, if I provide a font that is a custom font which was built over another FontAwesome file, with different name and different icons... the generated class creates this:
Iconic.registerFont("FontAwesome", map: MyFontIconMap)
Notice that it sets the "FontAwesome" instead of "MyFont".
That's another reason for asking to expose registerFont as public.
from iconic.
That is because it grabs the font's postscript name to create the class and specially, to register to the font manager.
from iconic.
I figure that much, I guess I could edit the file and change the postscript name to solve this.
from iconic.
I generally use Glyph
app for editing font files.
from iconic.
Related Issues (20)
- Error registering / unregistering font file. HOT 11
- Add coverage with Snapshot Tests
- Cannot port to Swift 2.3 or 3.0 HOT 1
- Cannot install via CocoaPods HOT 2
- Swift 3 Support HOT 11
- Add support for brew HOT 15
- Interface Builder support
- FontAwesome icon name is different HOT 1
- how to update the ttf HOT 1
- Rebuild using bitcode error HOT 6
- Linker Error when building HOT 2
- Unexpected behavior when installing custom fonts HOT 3
- Swift 4.0 Supprot HOT 2
- Swift 4.0 Support and Bitcode should be yes for Xcode 9 Apps HOT 4
- Getting error: no such module 'Iconic' HOT 2
- Getting errors from Swift files HOT 3
- Add robbiet480 as co-owner of CocoaPod to allow pushes HOT 10
- The compiler is unable to check that this switch is exhaustive in reasonable time HOT 3
- How to use the latest version of SwiftGen HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iconic.