Here's another issue with HTML-based Adobe Air application I am developing at the moment.
The question is whether I can embed custom font into my application. If it is possible, then, how do I do this?
I have my custom font file in app:/fonts directory, Firefox displays text correctly using this font when I'm viewing the page in it. But when I start AIR application everything is broken - I see only default font.
I've been searching all over the Internet, but found only some outdated links on how to embed font in CSS, though it works only for IE.
Thanks in advance, Mike.
Embedding fonts in this way is not currently supported. Any fonts used must be installed on the user's computer.
Related
Good day.
So, here is my issue.
I'm currently using sharepoint 2010 for web applications, I am supposed to display pdf as part of a web page. Currently, the browser tends to download the pdf file instead of displaying it.
Content-disposition is already set to inline.
I've also used iframe, and src is pointing to custom httpHandler.
I've already added "application/pdf" MIME type in the list of AllowedInlineDownloadedMimeTypes as per the advice in this link http://www.pdfshareforms.com/sharepoint-2010-and-pdf-integration-series-part-1/.
However, the application still failed to display it, and it prompts the user to download the file instead.
I'm using mozilla firefox v12 and ie8 to test the application, they both exhibit the same behavior.
What else is missing? Thank you.
It's important to remember that not all browsers, especially older ones like Internet Explorer 8, have the ability to render PDF content inline. In these older browsers, this was generally accomplished through plug-ins like Adobe Reader or Foxit being installed on the client machine.
Basically, if you are using an older browser, your users will likely need one of these (or a similar) plug-in installed. Otherwise when the browser encounters a PDF file, it will serve it to the user, as it doesn't really know how to deal with it.
There is also a chance that this could be a permissions / settings issue similar to the one addressed in this related question. You may want to review over some of the discussions within that thread as well as this Sharepoint 2010 one, which details a a setting called "Browser File Handling" and how it's default value of "strict" can affect how PDFs and other files are accessed.
He came across the solution while looking at the "Web Application General Settings". There is a setting called Browser File Handling and by default it is set to strict.
Ive been working on a project for months. We are using Typekit to load the fonts which works well on pretty much everything. One of the clients keeps sending screenshots where the fonts are off. I thought the issue was a dated browser. But it turns out the entire network has some fancy IE configuration that blocks the font script. When I turn on IE 11 high security mode I can replicate the error.
When in IE high Security mode the fonts are displayed as Times New Roman its like 1999 mode. When this mode is enabled and I visit typekit.com and googlefonts.com the websites fonts do not load.
I can not control the network settings. If the fonts are not going to load in this mode then is there a way to load the fonts from somewhere else. Or can I create an alternate websafe scheme.
If your client is blocking fonts, there is not alot you can do but develop a back up fail font in CSS or work with a websafe font to begin with.
I have seen a couple suggestions on how to tackle this. The only way I've tackled this is just importing the fonts myself. Doing so was faster on my machine too. There was blip of fonts loading. You can use tools such as Font Squirrel or Fontie. Make sure you import Opentype and TrueType as well.
When you have a font installed on your system, but the website you're visiting is using google fonts (in this case Muli), does IE9 load up your installed font file, or the one from Google?
In other words, how does IE9 prioritize which font file to load if there are two available with the same name?
EDIT:
I think the answer is that it uses the downloaded version of the font. I installed Muli and then used fiddler to watch the site and it downloaded the .eot
I'm not 100% sure that's right but it seems like it is. Doesn't explain why my client's fonts look ~ever~ so slightly different than mine, but she has some other issues I can't replicate so it might be a larger issue than just fonts.
Start IE, load the page (either locally or by internet), press the F12 key, click the Network tab, click the Start Capturing button, refresh the page. Does your font file appear within the list? If not then it is probably loaded from the OS and not from Google.
Working on a client project - reskinning their intranet. The way their security is set up, all external media is denied, including any Google Fonts. The tricky part is they're requiring us to restyle with a Google Font.
Prompting users to install the font themselves is, of course, unacceptable. Is there a way I can download a Google Font file and put it locally on the website?
UPDATE: After a bit of legwork, I found that you can download and use the compressed version of a google font to keep your site relatively optimized. Go to the import URL:
http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700,300italic
In the src attribute (the themes.googleusercontent.com URL) download the .woff file it links to, rename it as you please, upload it to your website's media directory, then point to that local file instead of Google's URL.
You can download them from Google and host them on your own server
Use the download button in the upper right corner at Google Fonts to download your collection
See https://developers.google.com/fonts/faq#Download_Fonts
As #Mike already mentioned in a comment, there is localfont.com which helps you download all font variants and generates cross-browser CSS for implementation. What you get from Google Fonts itself is ONLY TTF and therefore will not work on all Browsers. What you can manually download by accessing the Google CSS file actually depends on which Browser you use. localfont.com provides TTF, WOFF, WOFF2, EOT and SVG for all fonts available on Google Fonts.
We all know that fonts can be embedded in web pages now with the #font-face CSS directive. In order to do this, the font to be embedded must be placed in a readable directory on the web server. This means that any suitably motivated individual can download the font and use it on their own machine.
Does this mean that embedding a font counts as redistributing it? If I were to purchase a font, can I embed it and use it in a web page?
EDIT
I'm asking all this because I'm considering embedding Helvetica in a web page.
You can only embed a font using #font-face when web-use is allowed in the font's EULA. Some fonts come with a separate license for use on the web.
If you're worried about people stealing your #font-face files, you could use a service such as Typekit which lets you upload your web fonts and embed them using their service.
I think this is a very difficult question - it depends on the country you live in, I think.
You paid for the font, so you're allowed to use it. I never heard that there was a conflict because of that.
The be 100% sure, I suggest to ask the creator of the font.