T
T
thatside2015-07-07 18:44:20
PHP
thatside, 2015-07-07 18:44:20

How can I create a font from picture-letters?

There is a text designed in a standard font, but then processed in Photoshop - distortions, gradients and the like are added. You need to somehow prepare it for insertion on the page, while cutting out the picture is not a reason - the text changes quite often, too much work will have to be repeated. There are two options: either write an extension for a template engine (Twig) that converts text into a set of images with markup, which is laborious, or create a font from the letters themselves. How or tool to do this? The letters are not in the vector, the usual raster, psd.
UPD: the usual cutting of pictures did not work: they scatter both in width and in height, although I cut the heights along the lines and turned off all the indents. Another question: is it possible to somehow export the modified font from Photoshop?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Davlik, 2015-07-07
@thatside

<?php

$text = "TOSTER";
$bukv = array("T", "O", "S", "E", "R");
$kart = array("<img src='T.png'></img>", "<img src='O.png'></img>", "<img src='S.png'></img>", "<img src='E.png'></img>", "<img src='R.png'></img>");

$imgtext= str_replace($text, $bukv, $kart);
echo $imgtext; 
?>

It might work.

D
Denis Ineshin, 2015-07-07
@IonDen

fontastic.me
is a service that allows you to not only generate a font from the proposed characters, but also upload your own.

E
Emperor, 2015-07-07
@Emperor

Inkscape program .
You can make your own fonts, each character is assigned a corresponding key, uppercase and lowercase letters are counted separately.

G
Gluck Virtualen, 2015-08-24
@gluck59

Yeah, and then load these self-made under-fonts to each user in the browser ... :)
Do not be SO perverted on the web, it is not for that.
If you really really want to, create all the letters separately, then make up the necessary words from them. But something seems to me that already halfway through you will understand that the web is not for this and your idea is not worth perverting.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question