D
D
Dmitry Akulich2017-11-15 15:14:00
css
Dmitry Akulich, 2017-11-15 15:14:00

Why does the font style attached to the page diverge from the PSD layout?

The layout shows the pragmatica font in various styles. When you connect it to the page, the characters look different than in the layout, and this is very noticeable.
I connected both via link (allfont.ru service) and via @font-face, while saving the font in the site folder, but there are still differences in the styles.
For example, in the layout the letter "C" looks like this:
5a0c2ec645250559004535.png
and as a result on the site it looks like this:
5a0c2ee2cfeaf481379139.png
there are also differences in the letters "Z", "B", etc.
What could be the reason?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
I
iBird Rose, 2019-08-24
@neverever

divs on flex. when adapting, you can both transfer under each other and swap blocks through order

S
Sergo Zar, 2020-12-30
@Sergomen

Like iBird Rose said, divas with flex. Adapt them generally easy!

S
Sergey Melodin, 2017-11-15
@melodyn

Photoshop has a font smoothing setting: sharp, smooth, saturated, Windows LCD. It is also possible to turn off anti-aliasing, which changes the font, sometimes beyond recognition. Actually, most fonts on the web are displayed without anti-aliasing, which is what you observe in your case.
You can simulate anti-aliasing in CSS through text-shadow, setting a shadow in the text color through rgba, but I don’t know exactly the normal default anti-aliasing tool at the program level. Therefore, the choice of another font may take place as a search for a solution, but about a pirated font, this is apparently some kind of anecdote.
By the way, such phenomena can be observed not only on fonts, but also on rounded edges, which can look much better on the web than in Photoshop. This is one of the reasons why SVG icons are preferable, because they programmatically adjust to the pixel density and give, mostly, the best result.

A
Anatoly, 2017-11-15
@trofimovdev

Download the font that you are connecting to your computer and install it for text in Flash. If the style becomes "incorrect", then the problem is in the allfont.ru font (incorrect, different version, pirated, etc.). Connect the font that was used in Flash.

S
Sergey, 2017-11-15
@UDAV99

This is completely normal behavior. Fonts in Flash and in the browser may differ even if the same font is used. It's all about rendering. You need to select a font so that it looks the same everywhere, or use already verified fonts from Google Fonts and everything will be ok.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question