Skip to main content

Questions tagged [fonts]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
77 views

Magento 2 : How Can I disable woff2 format?

How can I disable woff2 format for fonts in Magento 2? I need .lib-font-face to connect only woff.
WhoYou's user avatar
  • 55
0 votes
1 answer
30 views

Load different custom fonts to different products

Is there a way to load different fonts for different products in Magento2.4 ? The fonts will be self hosted in /web/fonts, but I want them to load only to specific products. Could be done in a block ...
Nikos Klavdianos's user avatar
0 votes
1 answer
269 views

how to change font for email templates in magento 2.4.5-p2

I am using "Olegnax Athlete2" theme for my magento2.4.5-p2 store. I want to change my email template fonts to "futura pt book". can someone guide me to do the same.
Sikanderpreet Singh's user avatar
1 vote
1 answer
1k views

How to add custom font in magento2 transactional email?

I am trying to add custom fonts in magento 2 transactional emails however, it does not work. I am using hyva theme. I have imported Sofia-pro font under app/design/frontend///web/fonts/SofiaProRegular....
LosMos's user avatar
  • 121
0 votes
0 answers
600 views

install google font local

I have got an information that I must install the used google font local. I have checked my domain https://www.agoshop.at at https://www.ccm19.de and https://sicher3.de/google-fonts-checker/ I will ...
haiflosse's user avatar
2 votes
1 answer
178 views

Moving fonts to preload issue in Magento 2

I am using the lighthouse from chrome and I am getting the following: I have 3 fonts from the core of Magento and I would like them to move it in my default_head_blocks.xml with: <head> <...
Attila Naghi's user avatar
  • 4,093
0 votes
1 answer
768 views

How to preload custom fonts in Magento 2.2

I have a custom font in my theme already added through the "web/css/source/_typography.less". & when (@media-common = true) { .lib-font-face( @family-name: @font-family-name__base, ...
megloff's user avatar
  • 101
0 votes
1 answer
940 views

How to add custom font in DOM pdf in magento 2?

I have tried to add font using below code in head tag of html but it is not working. DOM PDF is showing it's default font. But i want to show custom fonts as per my website. So tried below code @font-...
ZealousWeb's user avatar
  • 2,138
1 vote
1 answer
304 views

M2 - Custom Font overwriting by bootstrap css in custom theme

I have laca adobe font, and my _typography.less & when (@media-common = true) { .lib-font-face( @family-name: @font-family__base, @font-path: '@{baseDir}fonts/Laca-Regular', @font-...
zus's user avatar
  • 123
0 votes
2 answers
682 views

M2 - How to include my custom font in custom theme?

How to apply adobe laca font, https://fonts.adobe.com/fonts/laca How to apply? I am created custom theme inherit from blank theme. Custom font declaration : app\design\frontend\Myrwd\mytheme\web\css\...
zus's user avatar
  • 123
0 votes
2 answers
2k views

Magento 2: add custom font to theme

I'm using a custom theme on my Magento 2.3.2. I would like to add a custom font that is on my folder. Since the official guide that i found on magento's site wasn't working for me, I've tracked down ...
user70508's user avatar
0 votes
1 answer
495 views

Add custom font to magento 2 module

I am building a module with Magento 2. I need to add custom font. All I did is to create a Module/NameSpace/view/frontend/web/css/source/_typography.less .lib-font-face( @family-name:'circular’, @...
 coinhndp's user avatar
1 vote
1 answer
1k views

Magneto 2.4 - Remove Blank-Theme-Icons/Blank-Theme-Icons.woff2

In our Magento 2.4 we created our own theme based on the Luma theme. Now we found out that every page loads the Blank Theme Icons font. /fonts/Blank-Theme-Icons/Blank-Theme-Icons.woff2 How can we ...
JGeer's user avatar
  • 1,422
0 votes
1 answer
244 views

Magento2 How to use custom fonts in Homepage

Does anyone suggest me how i can use custom fonts in my magento website ? I want to use "Red Rose" Google Fonts. i already download that font family and upload to my theme file "app/...
Sanjay Shiyal's user avatar
2 votes
1 answer
3k views

Luma Icons - add font-display:swap

How can I add font-display:swap to following Luma icon fonts @font-face { font-family: 'luma-icons'; src: url('../fonts/Luma-Icons.woff2') format('woff2'), url('../fonts/Luma-Icons.woff') ...
magento2new's user avatar
2 votes
1 answer
841 views

Google fonts issue as per new URL format

I have added google font in default_head_blocks.xml file like this: <link rel="stylesheet" type="text/css" src="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,...
Dipesh Rangani's user avatar
1 vote
1 answer
1k views

Add Google Fonts using Google's new URL format

Guides I have seen as to how to add Google Fonts to Magento 2 tend to require adding the font link via your XML such as <link src="fonts.googleapis.com/css?family=Montserrat:300,400,500,700" ...
RichardB's user avatar
  • 325
0 votes
1 answer
2k views

Magento 2.3 custom font not loaded in email

We want to use the 'Open Sans' font of Google in our transactional email templates. But when we sent the email it does not load the custom font inside the email. We changed the file /app/code/design/...
JGeer's user avatar
  • 1,422
1 vote
1 answer
78 views

Magento2 - Adobe XD to Magento2 font size

On the xd design the font-size is 55 and when I apply this font-size in my Magento layout It is bigger ? Why is it so?
Anonymous Record's user avatar
2 votes
1 answer
82 views

Magento 1.9 print invoice the characters are shown split and reverse

I have changed the font of pdf invoices to support Arabic characters, but the problem is the characters are split and reversed? Any suggested solution please Help!
Ghadawi's user avatar
  • 21
1 vote
1 answer
1k views

Ensure text remains visible during webfont load: Doesn't work on added fonts

In our Magento build we have a custom theme that uses Luma as a parent. After doing an Audit in Chrome we get the message Ensure text remains visible during webfont load and it lists the following. ...
Gezzasa's user avatar
  • 134
0 votes
1 answer
3k views

Email template fonts not rendering in gmail

I want to know how we can use our custom fonts rendering inside email template. I searched a lot to this answer but didn't find how to do that. So far I have already changed the content of email-...
Shashank Bhatt's user avatar
1 vote
1 answer
774 views

How to change font source url from local to CDN?

I have uploaded google fonts on the local server to a custom directory and it seems to work well so far except that the Ultimo theme I am using is picking the base URL to generate font URL path. ...
Zoya's user avatar
  • 481
0 votes
1 answer
49 views

What is the steps to include custom fonts in a newly created theme in magento 2 using typography.less?

I am adding a custom font in my newly created theme in magento 2. Below are the steps which i am doing: 1. Placed custom fonts in /app/design/frontend/Vendor_name/Theme_name/web/fonts 2) ...
Mukesh's user avatar
  • 125
1 vote
1 answer
316 views

How to use custom fonts via pub folder?

I would like to call paid fonts via pub folder. I create the specific font folder in pub i.e pub/static/frontend/Mageplaza/ultimate/en_US/fonts and linked it my custom.css file font family is not ...
Lucky's user avatar
  • 11
0 votes
0 answers
29 views

Magento 2.2 - It is possible to change the font on the Magento Admin?

Do we need any themes or we can change the font from the existing Magento files as we change the fonts on the frontend?
Ejilarasan J's user avatar
1 vote
1 answer
7k views

Magento 2: How to view/implement Magento icons from 'icons-blank-theme' font-family

I am currently developing a custom theme using Magento 2.3. I am altering the sidebar menu, so that its top-level items are collapsible and an arrow appears beside them when clicked, the same as the ...
Muckee's user avatar
  • 699
2 votes
1 answer
418 views

How to add google font in transactional email template Magento 1.9?

I'm new to magento and i have little problem with fonts. Is there a way to use some google fonts in my transactional emails template? I've tried to use google font using below way `@import url('...
SebastianT's user avatar
0 votes
2 answers
352 views

Magento 2 how to add Fonts?

I tested my site speed on Gtmetrix and it showed fonts rendering through https://fonts.googleapis.com/css?family=Montserrat:400,600,700|Roboto:400,400i,700 . And it is called in theme layout as -...
chanchal's user avatar
  • 417
3 votes
1 answer
2k views

Magento 2 font-display: swap

How is it possible to add to Magento 2 fonts font-display: swap ? I don't find the correct way in the typography.less, or in a custom CSS file, it breaks all the CSS. .lib-font-face( @family-...
C. vally's user avatar
2 votes
1 answer
3k views

How to add and use a custom font in Magento 2?

I purchased a magento 2 theme, but the theme uses the Google api font. How can I use a custom local font? Magento ver. 2.3.0
Angelo's user avatar
  • 101
0 votes
1 answer
582 views

Magento2: How to use custom font

I have download and upload custom font in backend: After save in editor I not see this font name: Anyone help how can I use this font ? @update I solve issue in this way. After upload font: <...
Sylvester's user avatar
  • 2,254
0 votes
2 answers
2k views

how to remove Open Sans font in magento 2

I need to remove Open Sans font in our Magento2 site. I have inherited the luma theme, so how to override the blank theme _typography.less file?
Moorthy A's user avatar
1 vote
1 answer
167 views

How to change the font for a specific store view in magento 2.2.6

I have two store-views which are English and Arabic and would like to change the font of the Arabic store-view for all front-end contents. please any help
safaa's user avatar
  • 11
5 votes
0 answers
236 views

Magento 2 icon font position problem (navigation menu)

Magento2 - I am trying to put some icons in my navigation menu, I want them to be on top of the subcategory name but this is what I have until now: This is my code for the first item, I have it in >...
pepe lancheros's user avatar
1 vote
1 answer
2k views

How to edit font size of product title in catalog page

I need to edit the font for the product titles in the catalog page. I believe it is referenced by "product-item-link" or "product-item-name" ?
Kim's user avatar
  • 11
0 votes
1 answer
123 views

Website breaks after adding external font to default_head_blocks.xml

I created a custom theme that inherits from another theme that in turn inherits from Magento Luma theme. I added the the file default_head_blocks.xml to my theme: <page xmlns:xsi="http://www.w3....
Jens's user avatar
  • 401
1 vote
1 answer
621 views

Magento 2.1 product page change wishlist button to font icon

Magento 2.1 product page I need to change the wishlist button to font icon "heart" which is the default in the luma theme, but when I apply my theme it shows a button... Does anyone knows how to ...
Nick Theodoridis's user avatar
2 votes
1 answer
2k views

Magento 2.1.9 frontend font icon extend

I need to change only one font icon -the cart icon. I tried a few guides: https://www.classyllama.com/blog/icon-fonts-magento-2-foundation http://rossmchugh.com/extending-magento2s-icon-font-system/ ...
Nick Theodoridis's user avatar
0 votes
1 answer
614 views

How to change the font on styles.css

I found out that the font is on styles.css using the inspect mode(ctrl+shift+i), but when I change it and upload it via FileZilla and refresh the page it stills the same font as before, I'm completely ...
Jon's user avatar
  • 25
1 vote
0 answers
116 views

Magento Email Templates Font Face

How can I use my custom font-face in magento email templates? I use the next codes: @import url('https://fonts.googleapis.com/css?family=Roboto'); And @font-face { font-family:...
Sergioh Lonet's user avatar
0 votes
1 answer
738 views

Magento 2 Invoice PDF contains weird character if comments are added in multiple lines while generating invoice

Magento by default do not display comments in pdf. So I wrote this code. $commentsCollection = $source->getCommentsCollection(true); $internalcomments = ""; if($commentsCollection){...
Sejal Shah's user avatar
  • 2,183
0 votes
2 answers
4k views

Magento 2: Why are my luma icons not showing?

I made a custom theme with luma as my parent theme. Somehow it's only showing the icons of the blank theme and not the one of luma. Do I need to copy any fonts or declare them in my custom theme? &...
Prometheus's user avatar
0 votes
2 answers
598 views

How to change the font for a specific store view

I have two store-views which are English and Persian(RTL) and would like to change the font of the Persian store-view for all front-end contents. Magento ver 1.9.2.4
Reshad Zazai's user avatar
2 votes
3 answers
19k views

Magento 2 - How to change fonts

How do I change the font family (at a theme level) to Helvetica in Magento 2.
shivashankar m's user avatar
0 votes
1 answer
1k views

Magento 2.1.4. Change font

I am trying to import a font (have Luma theme installed) with no success. Browsed similar threads about this, made changes in typography and variable files, but still can't get rid of the default '...
marilena6's user avatar
  • 125
3 votes
2 answers
3k views

How to remove lib-font-face from Magento 2

I've created a theme in Magento2 which inherits from the Luma theme. So it has inherited it's lib-font-face, which can be found in the styles-m.css @font-face { font-family: 'luma-icons'; src: ...
Holly's user avatar
  • 4,923
1 vote
4 answers
27k views

Magento 2 : How to Include New Fonts

I have added new fonts in <my theme>/web/fonts, and declared those fonts in <my_theme>/web/css/source/_typography.less. But still my custom fonts not reflecting in my pages. I'm missing ...
seeni's user avatar
  • 1,247
2 votes
0 answers
389 views

"Font has not been set" error when printing invoices

Trying to print invoices. I get the error "Font has not been set" and it refuses to generate PDFs. This error seems to be linked to certain orders, though there is no rhyme or reason. The next ...
user48871's user avatar
0 votes
1 answer
554 views

Magento 1.8 remove default google font from head

I searched Stackexchange but my question is different from others. I saw a similar question with Magento 1.9 but that solution does not work on 1.8. So therefor I ask my question. I noticed that the ...
Jason Dana's user avatar