Answer the question
In order to leave comments, you need to log in
What happens to the font on the site and in photoshop?
Hello. Pay attention to the Open Sans semibold font:
First image
Second image
Explanation
1. On font.google.com - this means that I went to the page with the font https://fonts.google.com/specimen/Open+Sans
2. This means that in Adobe Photoshop CC the Open Sans Semibold font was selected, and the anti-aliasing type was "Saturated"
3. This means that I connected the font to the site
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&subset=cyrillic" rel="stylesheet">
And in css I wrote font-family: 'Open sans'; font-weight:600; font-size: 16px; Answer the question
In order to leave comments, you need to log in
This is the difference between the font rendering engines in the OS and Photoshop. Plus, browsers do their bit.
To make it look like fonts.google.com, add this to your CSS:
html, body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
-webkit-text-stroke: 0.4px rgba(0, 0, 0, 0.1); /* Сильно влияет на рендеринг (условно, т. к. сам механизм рендеринга навряд ли меняет), аккуратнее с этим свойством */
text-shadow: #fff 0px 1px 1px; /* Да, LOL, оно тоже влияет на рендеринг */
text-rendering: optimizeLegibility; /* Так и не понял результат работы вот этого */
Opa. I close my eyes and write - SVG. Font formats chewed darkness and half of them are not supported (exaggerating). The best result is given by SVG fonts (IMHO), but they are frankly crookedly supported. In the plan, when connecting a font, SVG usually comes up lately, then all sorts of Woffs, etc. For what reason, the first one may not suck, I did not go into.
Well, in general, the FS tool, of course, is convenient, but in general it has little to do with reality. What is the shamanism for calculating the size when transferring the layout)
A little offtopic, in printing, for example, the font is usually not printed. It is converted to curves. In principle, to improve perception and reduce artifacts, the same approach is optimal on the web. I facedwith icon fonts personally and found a terrible artifact. I had a friend in the office, he had either 3 or 4 monitors of different caliber and quality connected. In general, when I saw mine, with what seems to be provided for such nuances, in the format of a pixel ladder, my surprise knew no bounds. But as it turned out, Fontawesome suffers the same, which reassured me. In the same article, I indicated that there are 2 sets, the actual fonts, including the SVG font, and symbols. Symbols are pure SVG, and there are no problems with it.
In short, fonts are a complete mess. I periodically start to type when I work seriously with them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question