Web fonts not rendering in supportive email clients - email

It's my understanding that the following email clients DO support web fonts:
AOL Mail
Native Android mail app (not Gmail app)
Apple Mail
iOS Mail
Outlook 2000
Outlook.com App
However, it's not rendering correctly in anything other than Apple Mail and AOL Mail.
I'm using the #import method to pull Bebas Neue from Adobe Typekit:
#import section
and then calling it with inline CSS styling:
CSS call
Am I missing something key here? Why is it not rendering correctly in the other supportive clients?

You need to declare that font in the style or as a google web font link in the head.
Example below:
#media screen {
#font-face {
font-family: 'DINPro-Light';
src: url('http://yourfont.com/fonts/din/DINPro-Light.eot');
src: url('http://yourfont.comfonts/din/DINPro-Light.eot?#iefix') format('embedded-opentype'),
url('http://yourfont.comfonts/din/DINPro-Light.woff2') format('woff2'),
url('http://yourfont.comfonts/din/DINPro-Light.woff') format('woff'),
url('http://yourfont.comfonts/din/DINPro-Light.ttf') format('truetype'),
url('http://yourfont.comfonts/din/DINPro-Light.svg#DINPro-Light') format('svg');
font-weight: normal;
font-style: normal;
}

Related

Deploy ionic2 mobile application as a Web application

I want to provide different CSS for ionic2 mobile and web. For example: list differs in width and height for mobile and web application, list font and alignment is different for mobile and web. Please let me know how to achieve this for ionic2 mobile application.
Thanks,
you can achieve that by injecting Platform from ionic-angular and then using ngClass and a boolean flag to assign an appropiate class for each platform.
import { Platform } from 'ionic-angular';
isMobile: boolean;
constructor(platform: Platform) {
platform.ready().then(() => this.isMobile = platform.is('mobile'));
}
and on the html:
<div [ngClass]="{'mobile-css': isMobile, 'web-css': !isMobile}"> </div>

How can I make NativeScript open an email label in its native mail client?

I have a simple page/screen. I want to be able to click the email address on the label when open the native mail client on the device. (i.e a mailto: equivalent).
I'm currently only concerned about iOS.
Is this possible?
XML
<Page loaded="pageloaded">
<GridLayout>
<StackLayout>
<Label text="sometest.mail#gmail.com">
</StackLayout>
</GridLayout>
</Page>
Or you could open the default email app while using openUrl method from tns-core-modules/utils/utils
import { openUrl } from "tns-core-modules/utils/utils";
openEmail() {
openUrl("mailto:test#example.com")
}
Yes.
You can use the email plugin to do that:
Nativescript email plugin by Eddie Verbruggen

Facebook API: Can't have the send dialog working. Why?

I am trying to send a message to a user through private inbox with Phonegap and the phonegap facebook plugin through this functionality:
https://developers.facebook.com/docs/sharing/reference/send-dialog
So when doing this :
FB.ui({
app_id:'XXXXXXXXX',
method: 'send',
name: "This is the name",
link: 'www.google.com',
to:to,
description:'This is the description'
});
as stated in this link : Send private messages to friends
Nothing happen. Why ?
Is it supported by the plugin ?
Please help.
Thanks
I am trying to implement the private message function in phonegap build, but it seems like its only working on desktop not in mobile device.
when I change the method from send to feed, and indicate display to touch.
It works on my IOS build, the window just popup
FB.ui({
app_id:'XXXXXXXXX',
method: 'feed',
link: 'www.google.com',
to:to,
display: touch
});
However, its not working any more when I change the method back to send.
I believe facebook api don't support FB.UI send method in mobile devices, just like what they already mentioned on their page: https://developers.facebook.com/docs/sharing/reference/send-dialog
"This dialog can be used with the JavaScript SDK and by performing a full redirect to a URL. It is not supported on mobile devices."
I STILL DON'T KNOW HOW TO SEND PRIVATE MESSAGE THROUGH FACEBOOK NOW, GOOD LUCK

Why does my website look different on my iPhones Safari browser, am I doing something wrong?

I have finished designing a website in HTML, and reviewed the results on a Windows Computer for Google Chrome, Safari, IE 9, Firefox and Opera web browsers. When reviewing my website on an Android device (Samsung S3), the results were the same as it would look on a desktop PC/MAC, but when reviewing it on my iPhone 5, or my friends iPhone 4s, the results were different. Some of the text was enlarged while some was not. I am very confused, and I hope someone can help me out ASAP.
Look forward to your responses, and see for yourselves what I mean:
Visit http:///www.islandtoislandshipping.com
Code HTML:
<p id="intro">Island to Island Shipping and Removal LTD is a developing
organisation keen to<br />provide a high standard of service to its
customers. The company specialises in worldwide shipment of any household
products or any goods, however, we<br />specialise directly to the Caribbean
(but that is not our limitation!). Island to Island Shipping and Removal LTD
provide an efficient, reliable and prosperous service<br />ensuring the highest
care is taken to in the process of delivery.</p>
<img id="aim" src="imgs/aim.png" width="450" height="174" />
<p>
<br />As a company, we aim to provide our clients with all the
services they<br />require, from practical (shipping, removals)
to advise on packing materials<br />and household maintenance.
</p>
<p id="stafftext">All our staffs are very friendly and courteous,<br />feel free to
discuss any queries you may have<br />and they will be happy to help. We are a<br
/>dedicated team aiming to provide a stress<br />free experience for our customers.
</p>
CSS CODE:
#intro{
position:relative;
margin-top:20px;
}
#aim{
margin-top:20px;
}
#stafftext {
position:relative;
margin-left:190px;
margin-top:90px;
}
.staffimg {
margin-top:-100px;
}
#link1 {
position:relative;
margin-left:130px;
bottom:130px;
text-align:center;
font-size:9px;
}
I would try and add -webkit-text-size-adjust: 100% to the body in your css. It will disable text resizing on iOS devices.
https://developer.mozilla.org/en-US/docs/CSS/text-size-adjust
http://blog.55minutes.com/2012/04/iphone-text-resizing/
iPhone browser doesn't like split margin or padding css styling. Try using the joined margin/padding way.
Instead of writing:
margin-top: 90px;
margin-left: 190px;
Try:
margin: 90px 0 0 190px;
That's margin: top right bottom left;

FB.ui dialog not displayed on mobile devices

I am using FB.ui to trigger a requests dialog. The dialog loads properly on non-mobile devices. However, it fails to load on mobile devices like iPad. What appears is something like a popup/iframe with a loading-gif.
FB.ui({
method: 'apprequests',
message: 'Hello People',
title: 'A friendly hello',
data: 'some-data',
display: 'touch',
access_token: my_access_token,
}, callback);
I have tried with display: 'iframe', display:'popup', display: 'wap' and display: 'page'. But nothing works. How can I get it working on mobile devices? Thank you.
I used a URL redirect for my mobile devices like here:
http://developers.facebook.com/docs/guides/mobile/#web
To display a mobile-friendly Feed
Dialog, redirect the user to the
following URL:
http://www.facebook.com/dialog/feed?
client_id=YOUR_APP_ID&redirect_uri=YOUR_URL&display=touch
I assume it works similarly for the apprequests method you are using.
My original response was deleted because the mod thought I was creating a new question. I was in fact responding to
I have tried this solution on iPad and still couldn't get it working with apprequests. I will try one more time when I have time and mention the result here. Thanks for the response. > – dheerosaur Jul 18 at 10:52
I have found the solution for people still having issues specifically with iPad, namely #dheerosaur and documented it here:
http://deansofer.com/posts/view/9/Facebook-UI-Modals-on-iPads-are-Borked
The trick is to supply this piece of CSS:
#fb_dialog_ipad_overlay {
width: 600px !important;
}
I also submitted a bug ticket to FB to look into it.