D
D
del9937882020-02-18 20:42:42
Design
del993788, 2020-02-18 20:42:42

How to make the font wide?

Hello. I cheated and changed the font width in the layout to make the layout more stylish. Now I need to hand over the project, but I have no idea what the layout designer will do, because I cannot provide him with the required font. Is there any way to change the font width? As I understand it, there is no such property in css and I will have to collect a new font...
5e4c21fabcfc3104703500.png

Answer the question

In order to leave comments, you need to log in

7 answer(s)
D
del993788, 2020-02-22
@del993788

One of the contributors suggested a solution: use scale. It might even be a better option than a new font, as the font is oversized, which will negatively impact the site's loading speed.
There is a crutch with margin in his solution, although this could be solved through an anchor point.

transform: scale(1.2,1.0); // изменение ширины
    transform-origin: left; // установление опорной точки

H
html-css, 2020-02-18
@html-css

If I were the layout designer, I would insert the layout (jpg) as a background into the container and hand over the work)

M
McBernar, 2020-02-18
@McBernar

If this is one title that does not have a key value, you can insert svg.
If it's all over the site, or if it's the main heading, redo it. You can't make your own font. You will spend half a year on kerning pairs, and the result will still be fig.
And yes - do not touch the letters. Whatever it may seem to you, no one will get better from your “design” of the font. The letters are meant to be read.

L
Lord_Dantes, 2020-02-18
@Lord_Dantes

Create your font

N
Nikolai Alexandrov, 2020-02-18
@dos

You can try to play around with the first parameter in scale, like this

h1 {
  transform: scale(1.2, 1.0);
}

Example: https://jsfiddle.net/pjxL5bsq/

F
flomango, 2020-02-21
@flomango

This is how it happens, designers cheat and thus create difficulties for workbenches, which are sometimes at a loss how to implement it.

S
shoutman, 2020-04-28
@shoutman

try to create your own non-variant at all?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question