yushiro / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
0 stars 0 forks source link

SVG fonts support #184

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This is great, but could you add a feature to read in a glyph from a
font?. (An OpenType font that we made ourselves.)

That would help to make a SVG font from a OpenType font.

If you want to see how an Indic language is fully covered by an OpenType
font written on ISO-8859-1, please download the following font and see
the web page below it using Firefox.
http://www.americansmartfonts.com/ds/Suriyakumara.ttf
http://www.lovatasinhala.com/dualscript.htm

That page could be read in Latin-1 or Sinhala depending on the
availability of the font. It would be great if the font is a
downloadable SVG font.

By - jayanþa ahágama <ahangama@gmail.com>

Original issue reported on code.google.com by narendra.sisodiya on 9 Sep 2009 at 5:23

GoogleCodeExporter commented 9 years ago

Original comment by narendra.sisodiya on 9 Sep 2009 at 9:20

GoogleCodeExporter commented 9 years ago
Not sure how we could read in a OpenType font in the browser.  More info is 
probably
needed.

Either way, this is most likely not going to get done for Bicorn (2.5)

Original comment by codedr...@gmail.com on 19 Feb 2010 at 2:18

GoogleCodeExporter commented 9 years ago
I have been able to use ttf and opentype fonts this way. (src - try local & url)

<li style="font-family:Book Antiqua src: local("fonts/ANTQUAB.TTF")
format("truetype");">Book Antiqua</li>
<li style="font-family:Stencil src: url("fonts/STENCIL.TTF")
format("truetype");">Stencil</li>
<li style="font-family:Gill Sans MT src: url("fonts/GIL_____.TTF")
format("opentype");">Gill Sans MT</li>
<li style="font-family:Goudy Old Style src: url("fonts/GOUDOSB.TTF")
format("opentype");">Goudy Old Style</li>

Original comment by dezigns...@gmail.com on 8 Apr 2010 at 9:43

GoogleCodeExporter commented 9 years ago
The only issue with adding fonts is that it only works with firefox 3.5+
Yes, IE has supported it since IE5, but since firefox and chrome didn't support 
it until later, I don't know if it belongs here.

I am, however working on implementing a plugin for this. Google just releases 
their Font Loader API and I have made a basic font picker demo: 
http://clintberry.com/demos/google-fonts/selector.html

I'll post when I get something integrated into svg-edit.

Original comment by cbb11111...@gmail.com on 14 Jul 2010 at 2:28

GoogleCodeExporter commented 9 years ago
I put together a proof of concept for this plugin here: 
http://clintberry.com/demos/svg-edit-with-fonts/

Add some text and change the font. It replaced the old dropdown with a new one 
that loads custom fonts. It has some bugs still, but mostly works.

Original comment by cbb11111...@gmail.com on 14 Jul 2010 at 5:11

GoogleCodeExporter commented 9 years ago
clint.berry - just got a chance to look at it and it looks pretty cool!  Are 
you thinking about contributing this to the project?  If you can generate a 
patch and attach to this issue, perhaps someone can investigate your code and 
see if it's integratable.

Original comment by codedr...@gmail.com on 21 Jul 2010 at 4:53

GoogleCodeExporter commented 9 years ago
I would love to contribute this, and I would love to contribute to the project 
in general. I am not sure this fits into the core of the product, but if you 
think it fits into the main application, then I am okay with it. I need to fix 
some style issues and then I will post the patch this weekend.

Original comment by cbb11111...@gmail.com on 22 Jul 2010 at 5:00

GoogleCodeExporter commented 9 years ago
I have put my code for the custom font-loader on my github site. I know it had 
a few downloads from my website, but there wasn't enough documentation to 
install it easily. I have put all installation details in the README file. You 
can get it here:

http://github.com/clintberry/svg-font-loader

Original comment by cbb11111...@gmail.com on 27 Nov 2010 at 6:26

GoogleCodeExporter commented 9 years ago
Related links:

http://groups.google.com/group/svg-edit/browse_thread/thread/6d4890a3b988162c
http://code.google.com/p/svg-edit/issues/detail?id=872
http://code.google.com/p/svg-edit/issues/detail?id=633

Original comment by marclaporte on 5 Jan 2012 at 6:47