Re: [gtk-list] Re: Music fonts



> I definitely need scaling.  So, how would I go about setting up a font and
> "vectorizing" the notes?  Can I look at what you've done with the Hershey
> fonts?

I just finished, and there is nothing there (like configure, makefiles)
except the code. The snapshot is

	http://www.physics.unc.edu/~serge/gtkhershey.gif
	
I also just sent a message to the list asking Gtk developers if they want to
include it into the core Gtk. If they do, I won't need to write all the
configure, makefile, etc. stuff. If they don't want it in there, I'll make
it an add-on package.

Speaking of the "vectorization", well, you probably have to do the same
thing that Herdshey himself did back in 50th (or 60th): draw a symbol and
see what vectors it is composed of. Then mark the vertices with the pairs of
X and Y and store them. If you decide to go ahead with this approach, I'll
send you some stuff from GNU plotutils and pgplot which describes how the 
characters are stored.

The whole reason I adopted Hershey for Gtk is that I need Greek, my own
Cyrillic and symbol fonts to draw mathematical expressions, and I need them
scaled and rotated in an arbitrary way. Current Gtk's font support does
not provide all that.

	Sergei
	



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]