Feature #667

Google Fonts

Added by Thomas Thomas over 2 years ago. Updated almost 2 years ago.

Status:ClosedStart date:04/11/2015
Priority:NormalDue date:
Assignee:Valentin Manthei% Done:

0%

Category:-
Target version:-

Description

Please consider supporting Google Fonts.

@import url(http://fonts.googleapis.com/css?family=Open+Sans);
lightIRC {
        font-family: 'Open Sans', sans-serif;
}

PTS55F.ttf (516 KB) Thomas Thomas, 05/31/2015 12:42 am

History

#1 Updated by Thomas Thomas over 2 years ago

Do you know approximately when this will be done?

#2 Updated by Valentin Manthei over 2 years ago

I want to do shorter release cycles in the future, but you can expect it to take a few weeks.

#3 Updated by Thomas Thomas over 2 years ago

Thanks. If you have chance to do it sooner I appreciate it a lot :-)

#4 Updated by Valentin Manthei over 2 years ago

It seems to more complicated than expected.

1. WOFF files (offered by Google Font API) are not supported Flash applications (only TTF)
2. We could ship lightIRC with a few predefined TTF fonts
3. Runtime loading of TTF assets is not supported in Flash (only embedded during compile-time)

The only solution would be to build own font parsing technique into lightIRC, but this would bloat the client by a few hundred kb. I am not sure if it's worth the effort.

But the chat definitely looks cooler with embedded custom fonts.

#5 Updated by Thomas Thomas over 2 years ago

Ugh, at the moment we are running lightIRC alongside KiwiIRC all because lightIRC doesn't allow Google Fonts.

KiwiIRC looks awesome using Google Fonts because it matches the rest of our website.

It would be awesome, as you agree, to somehow allow it in lightIRC as I do much prefer lightIRC over KiwiIRC (except the font issue).

For example on my site we use 'PT Sans'.

Hoping you can work some magic, or something :-)

#6 Updated by Thomas Thomas over 2 years ago

Valentin, is this a solution?

"Well let’s say you have a flash application where you want to allow users to customize the text formatting for some text box. Typically you would provide a small set of fonts which would all get embedded into the swf but this isn’t very flexible or ideal. Changing font’s or adding new one’s require rebuilding the swf. Also if only one or two fonts get used then all the other extra fonts do nothing but bloat the swf size. For this situation, it would be ideal to externalize the fonts and only load in the one’s needed."

http://nochump.com/blog/archives/20

#7 Updated by Thomas Thomas over 2 years ago

Any news on this?

#8 Updated by Valentin Manthei over 2 years ago

The link you posted does not really provide a good solution for the issue here. The fonts must still be embedded in a SWF file, which can then be loaded during runtime.
This would require that lightIRC is being shipped with a few special fonts in a subfolder. The user could then pick one of them.

#9 Updated by Thomas Thomas over 2 years ago

Valentin,

If I was to e-mail you with the font name, could you do it for us please?

(until there is a better idea I guess)

#10 Updated by Thomas Thomas over 2 years ago

Valentin ?

#11 Updated by Valentin Manthei over 2 years ago

Yes, please send the font (ttf).

#12 Updated by Thomas Thomas over 2 years ago

Hey Valentin,

I attached TTF version, hope it's ok!

#13 Updated by Thomas Thomas over 2 years ago

Is it ok, Valentin?

#14 Updated by Valentin Manthei over 2 years ago

The client is ready. Please give me your mail address and I'll send it.

#15 Updated by Valentin Manthei almost 2 years ago

  • Status changed from New to Closed

Also available in: Atom PDF