What fonts are supported by Salesforce PDF generation? - pdf-generation

I'm generating a pdf using a VisualForce page with the renderAs param set to pdf. I'm wishing for more fonts even though others have complained there are few. Does anyone know of additional fonts that work with Salesforce pdf generation?
So far I've only found five fonts that work (serif, sans-serif, monospace, courier, and arial unicode ms) by testing with a simple VisualForce page like this:
<apex:page renderAs="pdf">
<h2>Standard Font Families</h2>
<p style="font-family: serif;">Serif</p>
<p style="font-family: sans-serif;">Sans-serif</p>
<p style="font-family: monospace;">Monospace</p>
<h2>Additional Fonts (wishing for more)</h2>
<p style="font-family: Courier;">Courier!</p>
<p style="font-family: Arial Unicode MS;">Arial Unicode MS!</p>
<h2>Missing Fonts</h2>
<p style="font-family: Arial;">Arial</p>
<p style="font-family: Helvetica;">Helvetica</p>
<p style="font-family: Verdana;">Verdana</p>
<p style="font-family: Georgia;">Georgia</p>
<p style="font-family: Times;">Times</p>
<p style="font-family: Times New Roman;">Times New Roman</p>
<p style="font-family: Consolas;">Consolas</p>
</apex:page>

Looks like this is it for now:
Serif
Sans-serif
Monospace
Courier
Arial Unicode MS

Related

Remove Hyperlink in Outlook mail template

I want to remove the link like appearance in the below code.
For your information this template is being used in outlook
<span th:text="${SomeUrl}" th:remove="tag"
style="justify-content: normal;width: 100%; word-break: break-all;
text-decoration: none;pointer-events: none;cursor: default;">
</span>

laravel blade - how to hide the display of an html element for specific routes

folks!
I am using Laravel 5.6 with Hyn Laravel-Tenancy Installed.
I have a main menu that is the same for all tenants (subdomains), however, for one or another specific tenant (subdomain), I would like some items to be displayed from that main menu, but for all other tenants, these menu items not visible and also inaccessible, even if called by the url.
On the Blade I used a "#if route::has", but even limited that route to a specific subdomain, this route is available for all other subdomains, so that #if receives as true and ends up displaying the menu item.
I'm not finding a simple solution, could create a helper that identifies the url and if it is from a specific subdomain, would display the item and for the other subdomains would not be displayed, but "I guess" that it should have a native form using Blade along with "routes\web" to achieve this result.
Thanks!!!
use gate and can in laravel
in authserviceprovider create a gate like that:
$gate->define('see-menu',function(){
//check domains or rules or every thing that you need to check to obtain access
//return true if user have access and false if not access
});
and in you view use can to check see-menu
#can('see-menu')
//your code
<li class="devider"></li>.......
#endcan
u can do it like that i have my routs "admin department listOfTeachers" that thet user can see the button of sidemenu and use it
#if(Request::is('admin') || Request::is('department') || Request::is('listOfTeachers'))
<div id="mySidenav" class="sidenav">
×
<p id="poficon2" style="font-family: AwesomeFont;font-size: 27px; float: right;width:auto;height:auto;padding-left: 15px;padding-right: 20px;" class="colorIcon" id="newbornbaby"></p><p style="font-size: 23px;">الرئيسية</p>
<p id="poficon2" style="font-family: AwesomeFont;font-size: 27px; float: right;width:auto;height:auto;padding-left: 15px;padding-right: 20px;" class="colorIcon" id="newbornbaby"></p><p style="font-size: 23px;">قائمة المترشحين</p>
<p id="poficon2" style="font-family: AwesomeFont;font-size: 27px; float: right;width:auto;height:auto;padding-left: 15px;padding-right: 20px;" class="colorIcon" id="newbornbaby"></p><p style="font-size: 23px;">قائمة الاساتذة</p>
<p id="poficon2" style="font-family: AwesomeFont;font-size: 27px; float: right;width:auto;height:auto;padding-left: 15px;padding-right: 20px;" class="colorIcon" id="newbornbaby"></p><p style="font-size: 23px;">الشعب و التخصصات</p>
<p id="poficon2" style="font-family: AwesomeFont;font-size: 27px; float: right;width:auto;height:auto;padding-left: 15px;padding-right: 20px;" class="colorIcon" id="newbornbaby"></p><p style="font-size: 23px;">حسابات العمال</p>
</div>
<div class="centerVertical" style="float:right;margin-right:1.2rem;" onclick="openNav()">
<img src="../resources/images/menu.png" style="margin-top:3px;float:left;width:27px;height:20px;background-size: contain;background-repeat: no-repeat;" alt="student">
</div>
#endif

how to create e-mail template for outlook 2010 with a text over an image

I'm trying to create .oft template for outlook 2010 with a text over an image - text should be customisable by the end users...
If I create new e-mail from a html file and save it as template, input is not editable (using just a normal styled paragraph)
If I create new e-mail template directly in outlook, everything is ok for users, but it doesn't send it properly - everything is send as an attachment - so it doesn't display it properly in some mail clients (e.g. gmail).
Is there any bullet proof way how to create e-mail templates for outlook 2010 ?
I made a Fiddle so you can see this code in action: https://jsfiddle.net/wallyglenn/7zLaLrfx/
<div style="background-color:#ff0000; width:600px;">
<!--[if gte mso 9]>
<v:background xmlns:v="urn:schemas-microsoft-com:vml" fill="t">
<v:fill type="tile" src="http://www.gwally.com/news/photos/catintinfoilhat.jpg" color="#ff0000"/>
</v:background>
<![endif]-->
<table height="450" width="600" cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top" align="left" background="http://www.gwally.com/news/photos/catintinfoilhat.jpg">
<h1 style="text-align: center; color: #ffffff;-webkit-text-stroke-width: 1px; -webkit-text-stroke-color: black; font-family: Arial, san-serif;">
Background Image with text on top
</h1>
</td>
</tr>
</table>
</div>
The original code was taken from https://backgrounds.cm.
Good luck.

HTML Email : Outlook puts down the text after space

I am making HTML Emailer.
The issue i am facing is that , when i see the output of my code in Outlook, then
Register Online text gets down in the outlook.
like Register in one line and Online in new line.
<table cellspacing="0" cellpadding="0" border="0" style=";border-collapse: collapse;mso-table-lspace: 0pt;mso-table-rspace: 0pt; background: transparent;">
<tbody><tr>
<td valign="middle" height="40" align="center" class="main-bg-color" style=" background: #ffee00;color: black;display: block;padding-left: 20px;padding-right: 20px;!important; width:100px; cursor: pointer;">
<div class="modtxt"><span class="wrap_textbox"><a style="color: black;text-align: center; display:block; text-decoration: none;-webkit-text-size-adjust: none;font-size: 10px;line-height: 40px;text-transform:uppercase;font-family: \'proxima_novasemibold\', Arial, sans-serif;" href="http://www.hubilo.com/widget/webpanel/login.php?event=c1d1b1dc8d40c37429a8fd1f627c5c5e"><span style="font-weight:100;">Register Online</span></a></span></div>
</td>
</tr>
</tbody></table>
How can I solve it?
Thank You.
I'm not entirely sure what you want to do, but if it's make sure that "register online" doesn't ever break onto two lines, then the easy solution for Outlook is to use a non-breaking space character ( ) rather than a space.
REGISTER ONLINE
This should solve that particular issue.

Trying to modify a template

My client got an template for his store and I need to modify the page title. The problem is that there are inline styles and I'm not finding a way to remove them:
<div class="page-title">
<p>
<span style="font-size: small;">
<strong>
<span style="font-family: verdana, geneva; color: #543a1d;">DESTAQUES</span>
</strong>
</span>
</p>
</div>
please refer below link to change page title of any page you need to goto xml or block title
http://inchoo.net/ecommerce/magento/change-any-page-title-in-magento/
You can find the file where this code is using Templates hints
http://www.westwideweb.com/wp/2009/08/04/magento-how-to-turn-on-template-path-hints-and-inline-translation/

Resources