Jeremy Beare
Jeremy Beare

Reputation: 487

HTML custom font using images?

I'm not sure how to explain this so I'll start from the beginning. I'm trying to build a website which I want to have custom font. However the font I want to use is the same font I designed for my game. And so the font changing tags won't have my custom sprite.

The only way to achieve my custom font would be to load sprites of each character and program the font into my website. However I have no idea where I would begin with such a task. Or even if the task is possible. I achieved it once but it was very inefficient.

So I thought I'd ask the people at stackoverflow if this is achievable at all or if I am just have a daydream. So, can a custom font using images be done?

Upvotes: 0

Views: 409

Answers (1)

CodeWalker
CodeWalker

Reputation: 98

The one way I can think of doing this is if you can somehow convert your sprites to SVG. Once in SVG, it seems a relatively simple way to create a font from those SVGs as outlined here.

Upvotes: 1

Related Questions