You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assume you want to embed the HTML output in a website. For that, the fonts need to be served by your web server. If you use Rails and sprockets, you need to copy the fonts to your assets/fonts directory.
In addition, you need to configure qr-bill to use those font paths:
The entire QR-bill shows up but the fonts cannot be loaded:
GET https:///app/vendor/bundle/ruby/3.0.0/gems/qr-bills-1.0.9/web/assets/fonts/LiberationSans-Regular.woff net::ERR_ABORTED 404 (Not Found)
GET https:///app/vendor/bundle/ruby/3.0.0/gems/qr-bills-1.0.9/web/assets/fonts/LiberationSans-Regular.ttf net::ERR_ABORTED 404 (Not Found)
Code:
params[:output_params][:format] = "html"
@Bill = QRBills.generate(params)
<%= raw @Bill[:output] %>
Can anybody help?
The text was updated successfully, but these errors were encountered: