Giter Site home page Giter Site logo

Comments (10)

dzenbot avatar dzenbot commented on May 18, 2024

Which APIs are you trying to access? You should only use the APIs from the auto-generated class.

from iconic.

shshalom avatar shshalom commented on May 18, 2024

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.

dzenbot avatar dzenbot commented on May 18, 2024

Isn't this related to #33?

from iconic.

shshalom avatar shshalom commented on May 18, 2024

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.

dzenbot avatar dzenbot commented on May 18, 2024

Totally forgot to update the docs. Sorry about that!

from iconic.

dzenbot avatar dzenbot commented on May 18, 2024

In theory, you should not need to call Iconic.registerFont("FontAwesome", map: FontAwesomeIconMap) anymore since registerIconFont() does it for you internally.

from iconic.

shshalom avatar shshalom commented on May 18, 2024

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.

dzenbot avatar dzenbot commented on May 18, 2024

That is because it grabs the font's postscript name to create the class and specially, to register to the font manager.

from iconic.

shshalom avatar shshalom commented on May 18, 2024

I figure that much, I guess I could edit the file and change the postscript name to solve this.

from iconic.

dzenbot avatar dzenbot commented on May 18, 2024

I generally use Glyph app for editing font files.

from iconic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.