N
N
Nwton2016-09-15 20:19:04
css
Nwton, 2016-09-15 20:19:04

Set font for numbers and letters?

Game site. Corbel is used as the main font.
But since The numbers in this font are a la comic sans, wherever there are numbers, a simple Arial is put. And for this, the numbers are separately enclosed in a span with a style for numbers, which is very inconvenient.
Is it possible to somehow prescribe a separate font for numbers and separately for letters? Or what is the best way to solve this problem?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
iBird Rose, 2016-09-15
@Nwton

find the svg of both fonts and create your own font based on them. if you google about creating fonts, there is a lot of software.
ps here's just a license for fonts, and problems because of this may be later) so it's better to connect separately right now)

R
rejjer, 2016-09-15
@rejjer

It can be automated - when rendering text on the server, go through it with a regular expression that would look for intervals with numbers and add span to them.
str_replace

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question