Git Product home page Git Product logo

Comments (15)

gclsoft avatar gclsoft commented on August 16, 2024

image

from flatuikit.

gclsoft avatar gclsoft commented on August 16, 2024

image

from flatuikit.

jamieomatthews avatar jamieomatthews commented on August 16, 2024

Is this error happening in the example project? Or in your own project?

from flatuikit.

gclsoft avatar gclsoft commented on August 16, 2024

@jamieomatthews Not an error, but catch the exception every time when I debug. In my own project.

from flatuikit.

jamieomatthews avatar jamieomatthews commented on August 16, 2024

Did you copy the fonts over to your project? I bet this is the problem.

Verify that you have followed steps 1-4 of this article

http://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app/

from flatuikit.

gclsoft avatar gclsoft commented on August 16, 2024

@jamieomatthews Yes. I'm using the pod. I even copy the ttf fonts to my project, it still catch the exception.

from flatuikit.

jamieomatthews avatar jamieomatthews commented on August 16, 2024

You need to do more than copy the ttf into the project. You need to copy it, make sure its added in the target, and add the font name to the bundle. Verify that all this is done

from flatuikit.

gclsoft avatar gclsoft commented on August 16, 2024

@jamieomatthews I'm not using the pod now and do it as you said, but the same.
image

from flatuikit.

jamieomatthews avatar jamieomatthews commented on August 16, 2024

Yep, this means that one of the fonts ("Lato-Regular", "Lato-Bold", "Lato-Italic", "Lato-Light"), has not been copied into the project correctly. This is not a problem with the project, just your configuration. Please refer to the link I sent that debugs adding a font to an iOS project.

from flatuikit.

gclsoft avatar gclsoft commented on August 16, 2024

image
I don't know why, but I failed.

from flatuikit.

jamieomatthews avatar jamieomatthews commented on August 16, 2024

Show me a screen shot of your plist as well, where you added the fonts

On Thu, May 7, 2015 at 11:17 AM, Ganko [email protected] wrote:

[image: image]
https://cloud.githubusercontent.com/assets/1269898/7518514/0e6eebe4-f50e-11e4-8d4c-f56454afdf6c.png
I don't know why, but I failed.


Reply to this email directly or view it on GitHub
#184 (comment).

from flatuikit.

gclsoft avatar gclsoft commented on August 16, 2024

@jamieomatthews

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>CFBundleDevelopmentRegion</key>
    <string>zh_CN</string>
    <key>CFBundleExecutable</key>
    <string>$(EXECUTABLE_NAME)</string>
    <key>CFBundleIdentifier</key>
    <string>com.MyLike.CRM</string>
    <key>CFBundleInfoDictionaryVersion</key>
    <string>6.0</string>
    <key>CFBundleName</key>
    <string>$(PRODUCT_NAME)</string>
    <key>CFBundlePackageType</key>
    <string>APPL</string>
    <key>CFBundleShortVersionString</key>
    <string>1.7.20150501</string>
    <key>CFBundleSignature</key>
    <string>????</string>
    <key>CFBundleVersion</key>
    <string>1</string>
    <key>LSRequiresIPhoneOS</key>
    <true/>
    <key>UIAppFonts</key>
    <array>
        <string>FontAwesome.ttf</string>
        <string>flat-ui-icons-regular.ttf</string>
        <string>Lato-Bold.ttf</string>
        <string>Lato-Italic.ttf</string>
        <string>Lato-Light.ttf</string>
        <string>Lato-Regular.ttf</string>
    </array>
    <key>UIBackgroundModes</key>
    <array>
        <string>remote-notification</string>
    </array>
    <key>UILaunchStoryboardName</key>
    <string>LaunchScreen</string>
    <key>UIMainStoryboardFile</key>
    <string>Main</string>
    <key>UIRequiredDeviceCapabilities</key>
    <array>
        <string>armv7</string>
    </array>
    <key>UISupportedInterfaceOrientations</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
        <string>UIInterfaceOrientationPortraitUpsideDown</string>
    </array>
    <key>UISupportedInterfaceOrientations~ipad</key>
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationPortraitUpsideDown</string>
        <string>UIInterfaceOrientationLandscapeLeft</string>
        <string>UIInterfaceOrientationLandscapeRight</string>
    </array>
</dict>
</plist>

Even if I removed the ttf in the plist, it still catch the exception.

from flatuikit.

gclsoft avatar gclsoft commented on August 16, 2024

Oh, it's because of the FontAwesome.ttf!!! Thanks so much! I removed FontAwesome.ttf and everything goes well!

from flatuikit.

jamieomatthews avatar jamieomatthews commented on August 16, 2024

Cool, cheers

On Thu, May 7, 2015 at 11:24 AM, Ganko [email protected] wrote:

Oh, it's because of the FontAwesome.ttf!!! Thanks so much! I removed
FontAwesome.ttf and everything goes well!


Reply to this email directly or view it on GitHub
#184 (comment).

from flatuikit.

gclsoft avatar gclsoft commented on August 16, 2024

Thanks for your time. I added FontAwesome.ttf file to the building setting tab and now OK as well.

from flatuikit.

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.