Can someone post the proper syntax for using #font-face with the HTMLloader. I'm loading an HTML string directly into the loader and it will render normal CSS, but I can't get it to load the TTF I'm referencing with #font-face.
Turns out that the Adobe only has Adobe Air 1.5 built into it, that was my problem. Using this tutorial, I was able to upgrade to use Adobe Air 2.7 using this tutorial,
http://blog.prevail.co.nz/2011/06/21/overlaying-air2-7-in-flash-cs5/
After upgrading the #font-face started working, but I still didn't like it cause the fonts had no anti-alias smoothing, the fonts render like they would in a browser using web safe fonts.
Related
I have used electron-vue to create desktop application. I was trying to preview a pdf in my application. I have tried JsPdf, vue-pdf, iframe etc. But nothing has worked.
I am using Vue 2.5.16 version.
I can download the pdf using jspdf but can't preview it. While importing vue-pdf I got unrecognized token error.
Anyone knows any alternative solution?
Any kind of help is highly appreciable.
electron-vue is very outdated.
it uses electron 2.0.4, now we have electron 9.1.0.
you can read it in the dependencys here.
And from a personal project i know that the pdf bug has fixed in 9.0.
Here you find the Github Issue
So at least try to update the dependencys
I've been spinning my wheels on this subject for a few days. I have Xfinium PDF in a Xamarin.Forms application I'm working on and I need to generate a pdf in different languages. So I have different .otf files set up as a PdfUnicodeTrueTypeFont. Now this works in iOS no problem, but in Android the PDF is generated blank if I try to generate it in a language that needs one of these fonts. I also have lost the ability due some other things going on in my work environment to side load to android or debug in android at all.
Make sure the font is embedded in the PDF (either by looking at the file directly or using an application to get information on embedded fonts).
If the font is not embedded it's possible that Android is failing to fallback to another font for some reason. Does the PDF open correctly Chrome?
I'm building a mapping application using the Leaflet API http://leafletjs.com/.
I would like to use phantomjs to generate static screenshots of maps.
As an example, attempting to render this page:
http://leafletjs.com/examples/geojson-example.html
using
phantomjs examples/rasterize.js http://leafletjs.com/examples/geojson-example.html test.png
results in an image that's missing the SVG overlay. I have tried this using the prebuilt binaries under Windows 7 and Fedora Core 15. In addition, I compiled it from source under Fedora Core 15. All builds on both platforms yielded the same behavior.
Has anyone had success rendering Leaflet maps to PNG using phantomjs?
thanks.
I just ran into the same issue and increasing the timeout (at least to 5000) didn't make SVG overlays appear in the PDF.
It's probably this issue: https://github.com/ariya/phantomjs/issues/11171
Switching to Leaflet master branch fixed the problem for me.
I am using Apache PDFBox to render thumbnails of PDF documents on Heroku. The PDFs I use to test my code render fine locally on a Mac, on Heroku certain fonts don't render.
I suspect that PDFBox can't find the 14 Standard Fonts. I could include them in my app, but I couldn't figure out how to tell PDFBox where to search for the fonts.
Before I dig deeper in the internals of PDFBox, maybe somebody knows an easy way to fix this?
I'm working on some HTML5 content to be included as part of an iPad app in a Web View and it requires some custom fonts which I was attepting to implement via CSS and #font-face
As I understand it, Mobile Safari only supports SVG fonts, but my testing has shown Mobile Safari to really struggle with SVG and the performance hit is a serious issue.
So... is it possible to put fonts in the App Bundle and somehow make them available to the webview?
Yes it is. Include the fonts in the App Bundle and in the app-info.plist use
"Fonts provided by application"
and provide the file name for each font.
Looks something like this...