B4J Question Fontawesome issue

Discussion in 'B4J Questions' started by ilan, Aug 29, 2019.

  1. ilan

    ilan Expert Licensed User

    hi

    i am using Fontawesome in my app and on my pc at home everything works fine. when i open the project on my pc at work i see only rectangles instead of the font.

    how can i make sure that the user that will open the app will see it as i do on my pc?

    b4jI1.png
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Strange. Open the jar file with 7zip. Do you see a file named Files\FontAwesome.otf?
     
  3. ilan

    ilan Expert Licensed User

    yes, it is inside:

    fa.png
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Run the attached executable jar (assuming that you are using Java 8).

    What do you see?
     

    Attached Files:

    • 1.jar
      File size:
      472.3 KB
      Views:
      2
  5. ilan

    ilan Expert Licensed User

    i am using Windows 7 pro on my work pc. could that be the reason?
     
  6. ilan

    ilan Expert Licensed User

    thanx erel,

    your example work. but i use hebrew text. is that the problem?
     

    Attached Files:

  7. Erel

    Erel Administrator Staff Member Licensed User

    I see. The icons do appear, only the Hebrew letters are missing. You can try the attached jar. It works here.

    You can combine multiple fonts with B4JTextFlow from XUI Views.
     

    Attached Files:

    • 1.jar
      File size:
      472.3 KB
      Views:
      3
  8. ilan

    ilan Expert Licensed User

    faheb.png

    I have windows 7 pro on Hebrew. really weird :confused:
    so you suggest using B4JTextFlow with own icons?
     
  9. Erel

    Erel Administrator Staff Member Licensed User

    No. Use B4JTextFlow with two fonts, FontAwesome and a different one.

    Actually now that I see your screenshot again, just use two labels instead of one.
     
    ilan likes this.
  10. ilan

    ilan Expert Licensed User

    this is why you are the head of Anywhere Software and i only use your Software. :oops: (why i have not thought about that)
     
    Johan Hormaza likes this.
  11. Erel

    Erel Administrator Staff Member Licensed User

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice