Answer the question
In order to leave comments, you need to log in
Is it possible to add fonts to html banner for mail.ru?
If someone came across, tell me.
Is it possible to add fonts to mail.ru banner?
It is not very convenient to type png-hami text.
Judging by the requirements, no, but maybe I misunderstood something?
2. Resources of the following types are allowed: .png, .jpg, .jpeg, .gif, .css, .js, .svg.
11. It is forbidden to access external resources.
Link to requirements for html banners
Answer the question
In order to leave comments, you need to log in
A. It is possible through "sealing" the font in base64 and further:
@font-face {
font-family: 'MyWebFont';
src:
url(data:application/x-font-woff;base64,КОД_ТВОЕГО_ШРИФТА==) format('woff'),
....
}
Unfortunately, for mail.ru (MyTarget) banners it is forbidden to connect any external files, libraries and fonts. The size of the archive from banners (all files used) should not exceed 150kb, most likely, this limitation will not allow you to connect and use fonts inside the archive. Therefore, text in PNG format or similar to SVG will be the best option. You can also use standard font sets that do not require libraries.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question