I
I
Igor2015-11-20 13:38:52
css
Igor, 2015-11-20 13:38:52

Identity of font display in PSD and in the browser, CSS settings. How to do?

Hello.
There is a PSD layout, there is text. Font: Arial Regular Regular, Size: 14pt, sharp.
How in the Browser, through the CSS settings, make absolutely identical text?
Now I decided to make it strictly according to PixelPerfect.
Probably there is a set of rules for the identical transfer of text from PSD to the Browser, using the customization method in CSS?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
L
Lynn "Coffee Man", 2015-11-20
@Lynn

No way. Forget about it. You don't have to want it.

A
Alexander Chekalin, 2015-11-20
@achekalin

You can try to play with the text-rendering property (a lot has been written about it, say - https://css-tricks.com/almanac/properties/t/text-r... ), with the -webkit-font-smoothing property ( well, it’s clear in which browser), only with it you need to believe that the user has the “correct” browser.
The second trick with the ears is to make the text have an almost absent shadow through text-shadow (say, text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004) - see the size of the shadow?), in some cases this helps.
So write something like
text-shadow: 1px 1px 1px rgba(0,0,0,0.004);
text-rendering: optimizeLegibility !important;
-webkit-font-smoothing: antialiased !important;
and pray :)
In general, the web is not pixel-prefect, but first of all content. All prettiness, where necessary, can be replaced with graphics with beautifully written titles, through tricks like this: https://css-tricks.com/the-image-replacement-museum/ , but please remember that people with mobile devices would rather receive content that is slightly less beautiful, but more displayable on their devices.

D
dom1n1k, 2015-11-20
@dom1n1k

No way. Not at all.
There are some semi-crutch properties that change something there a little (see the next comment), but there will never be a completely complete correspondence.
Text rendering also differs between browsers and axes.

S
sashabeep, 2015-11-24
@sashabeep

No way. Sob.
And in general, in FS anti-aliasing is Chukhonian.
We have a clause in the contract about this, because we are FUCKED

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question