Giter Site home page Giter Site logo

Font Family Issue about react-native-fontawesome HOT 7 OPEN

entria avatar entria commented on May 24, 2024 1
Font Family Issue

from react-native-fontawesome.

Comments (7)

manishbisht avatar manishbisht commented on May 24, 2024

If this issue gets confirmed. I can submit the fix and send the PR.

from react-native-fontawesome.

leandrosimoes avatar leandrosimoes commented on May 24, 2024

If this issue gets confirmed. I can submit the fix and send the PR.

Hi @manishbisht ! Try to use this font files there is in the new sample/ project that I made. This files match the font family names. I changed the downlod url in the documentation, but this was not merged yet as you can see at this PR: #64

So, would be nice if you open a new PR to change the font families, update this font files too in the sample/ project and make sure that everything is working with the new font families and files.

UPDATE: Fix font files url

from react-native-fontawesome.

sspiff avatar sspiff commented on May 24, 2024

Changing the fontFamily like so is an easy workaround:

import FontAwesome, { SolidIcons } from 'react-native-fontawesome'
SolidIcons._fontFamily = 'FontAwesome5Free-Solid'

from react-native-fontawesome.

leandrosimoes avatar leandrosimoes commented on May 24, 2024

Changing the fontFamily like so is an easy workaround:

import FontAwesome, { SolidIcons } from 'react-native-fontawesome'
SolidIcons._fontFamily = 'FontAwesome5Free-Solid'

Did you try to use this font file? The files are from the sample project and the sample project was tested in both, android and ios, and it is all working.

from react-native-fontawesome.

sspiff avatar sspiff commented on May 24, 2024

Changing the fontFamily like so is an easy workaround:

import FontAwesome, { SolidIcons } from 'react-native-fontawesome'
SolidIcons._fontFamily = 'FontAwesome5Free-Solid'

Did you try to use this font file? The files are from the sample project and the sample project was tested in both, android and ios, and it is all working.

No, I had followed the link to the font files in the (outdated?) README on npmjs.com (which point to fontawesome.com).

from react-native-fontawesome.

leandrosimoes avatar leandrosimoes commented on May 24, 2024

Changing the fontFamily like so is an easy workaround:

import FontAwesome, { SolidIcons } from 'react-native-fontawesome'
SolidIcons._fontFamily = 'FontAwesome5Free-Solid'

Did you try to use this font file? The files are from the sample project and the sample project was tested in both, android and ios, and it is all working.

No, I had followed the link to the font files in the (outdated?) README on npmjs.com (which point to fontawesome.com).

Yeah, the npm README is outdated, unfortunately. I'll open an Issue to update that asap. Try to use the font files from the link that I told you, I think that it will work.

from react-native-fontawesome.

vicnicius avatar vicnicius commented on May 24, 2024

The suggested fix will only work for the free version of the font, though. If using Pro - like I was trying to -, one will likely have to come up with a different workaround. :/

from react-native-fontawesome.

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.