Hi,

Great work!
Is there a way to create a submodule with your own fonts?
It would be great when i could upload an ttf; apply it to a HTML tag and have it working.

Comments

mkalbere’s picture

It needs more manipulation, ttf is not enough for web browser usage (need eot,& woff file)
have a look on http://www.fontsquirrel.com/fontface/generator

frans’s picture

I know ;)

I am not aware of a API web service creating the required font files. But maybe there is?

Besides that, it would also help me when I could use this modules interface and include my own (by fontsquirrel generated) zip.
This way we have a standardized way to include fonts.

sreynen’s picture

Title: a way to create your own submodule with own local fonts » Port local_fonts from 7.x-1.x to 7.x-2.x
Priority: Minor » Normal

There's already a local fonts submodule to upload all the different formats and create the CSS in the 7.x-1.x branch. Looks like that didn't get added to the 7.x-2.x branch. It should work with the exact same code, so you can just download the older version and copy that submodule to the newer version. If someone can create a patch after doing that, it would speed up getting it into the 7.x-2.x actual release.

BarisW’s picture

Assigned: Unassigned » BarisW

working on it

BarisW’s picture

Status: Active » Fixed

Done. It needed a bit of TLC, but it's working now.
Committed to 7.x-2.x-dev.

Please let me know if works as expected.

frans’s picture

Tnx Baris,

Did a rough test. Just on my localhost, under ubuntu/FF. Seems to work as expected.

I will test it on a site in the coming weeks, with a package from custom fontsquirrel.

BarisW’s picture

Frans, thanks for testing! ;)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

typo fix