Bug? FontAwsome is not added to the project if created in code

Discussion in 'B4J Bugs & Wishlist' started by Cableguy, Nov 14, 2017.

  1. Cableguy

    Cableguy Expert Licensed User

    Hi EREL

    I've created a custom view that uses the FontAwsome as font for 2 Labels.
    I defined the Font like

    Code:
    LeftArrow.Font = fx.CreateFontAwesome(mHeight * .8)
    But after compiling the Class to Library, the new project complains that the font was not copied to the folder...
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    It is not a bug. The compiler only adds the FontAwesome file if you use it in the designer or with jfx.CreateFontAwesome.

    It will not happen if the code is already compiled in a library.
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    BTW, you can probably solve it by adding this line to the custom view project:
    Code:
    #AdditionalJar: FontAwesome
     
    Cableguy likes this.
  4. Cableguy

    Cableguy Expert Licensed User

    Although it doesn't throw any errors when compiling to Library, it complains when using the lib about the font not being found.

    So I guess I need to turn this into a wish and Alert the Lib users to add the font in their apps.
     
Loading...