[smufl-discuss] Re: Glyph Registration and Graphical Metadata

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[smufl-discuss] Re: Glyph Registration and Graphical Metadata

Joseph Berkovitz

On May 30, 2013, at 10:59 AM, "Daniel Spreadbury" <[hidden email]> wrote:

> Joe So SVG basically provides no support for anything beyond CSS2, so no
> stylistic alternates, and not even automatic support for ligatures, though
> it is possible to use ligatures via the altGlyph element. This also means,
> I think, that it would be possible for an application whose implementation
> is limited to the extent of the SVG API to access stylistic alternates
> provided they are given explicit codepoints. Please correct me if I'm
> wrong.

Yes, the explicit-codepoint solution would be greatly preferred.

> Canvas appears to be even more basic than that, though what is not clear
> from the specification is whether or not text in Canvas elements is
> subject to the same text shaping etc. that text elsewhere in HTML is
> subject to.

Yes, it can be scaled, etc.

> I don't know enough about how Canvas interacts with CSS to
> know whether, for example, you can use CSS3 features with text in Canvas
> elements. Do you know whether or not that is the case?

CSS3 and SVG/Canvas text do not interoperate AFAIK.

>
> It appears that neither SVG nor Canvas provides a simple way to measure a
> glyph and get its height, though Canvas does provide a way of getting the
> width of text, at least.

I can testify that SVG does provide full bounding box calculation, because Noteflight absolutely relies on that. The bounding box API is generic to all SVG graphical elements rather than being text-specific, which is probably how you missed it. The SVG spec is also organized in a very complicated way with many interface definitions whose relationship to everything else in the spec is far from clear.

Here's the culprit:
http://www.w3.org/TR/SVG/types.html#__svg__SVGLocatable__getBBox

.            .       .    .  . ...Joe

Joe Berkovitz
President

Noteflight LLC
Boston, Mass.
phone: +1 978 314 6271
www.noteflight.com
"Your music, everywhere"


#############################################################
This message is sent to you because you are subscribed to
  the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
To switch to the DIGEST mode, E-mail to <[hidden email]>
To switch to the INDEX mode, E-mail to <[hidden email]>
Send administrative queries to  <[hidden email]>