Cableguy Expert Licensed User Longtime User Nov 14, 2017 #1 Hi EREL I've created a custom view that uses the FontAwsome as font for 2 Labels. I defined the Font like B4X: 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...
Hi EREL I've created a custom view that uses the FontAwsome as font for 2 Labels. I defined the Font like B4X: 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...
Erel B4X founder Staff member Licensed User Longtime User Nov 15, 2017 #2 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Nov 15, 2017 #3 BTW, you can probably solve it by adding this line to the custom view project: B4X: #AdditionalJar: FontAwesome
BTW, you can probably solve it by adding this line to the custom view project: B4X: #AdditionalJar: FontAwesome
Cableguy Expert Licensed User Longtime User Nov 15, 2017 #4 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.
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.