-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom fonts in phonegap project #437
Comments
This sounds like a path resolution issue. We have been talking about ways to minimise these kinds of issues with the developer app. Can you try something for me? Try having the font in the same folder as the CSS and reference it like:
|
@abdallah-amoudi After some further testing, it doesn't seem to be a paths issue. I was able to get an arabic font referenced in the same way working on the developer app. The only things I can think to test are to be sure the file name is correctly cased (not sure if that makes a difference). I downloaded an arabic font called 'arabweb1.ttf' and placed it in a fresh app and referenced it in the CSS as below:
and was able to get it to work on iOS in the developer app: |
@devgeeks I tried other ttf files and it seems to be working. I am not sure is it the structure of the TTF file itself has something to do with phonegap IOS ? because my original TTF file already works fine with phonegap Android |
Dear @devgeeks
I have a phonegap project with Arabic custom fonts. In chrome the font is displayed correctly and also in physical Android device but in phonegap app installed in iPhone the font has no impact.
Below is a general structure phonegap project:
The environment I have is the following:
This is the css code:
This is part of the HTML code:
Attached image is a snapshot of chrome, android device, and iPhone device
The text was updated successfully, but these errors were encountered: