eric.e.swanson

My feedback

  1. 18 votes
    Vote
    Sign in
    (thinking…)
    Sign in with: Facebook Google
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    under review  ·  3 comments  ·  General  ·  Flag idea as inappropriate…  ·  Admin →
    eric.e.swanson commented  · 

    Not sure if these links will be perpetual, but I can provide 2 examples:

    Font embed in the SVG:
    https://www.w3.org/TR/SVGTiny12/examples/font02.svg

    Font ref by name:
    http://nimbupani.com/demo/svgfonts/svg-websafe.svg

    Also, here is the xml of an example svg that I created:
    <svg width="120" height="25" xmlns="http://www.w3.org/2000/svg"><text x="0" y="20" font-family="Open Sans" font-weight="200">Open Sans Test</text></svg>

    There are other ways to reference a font from external sources, but I don't believe that needs to be supported now...

    I understand the concern with custom fonts and that each platform has a different way they package and reference them. So we'll need an Init API in XamSVG to provide a map for the non-embed fonts. For example, UWP requires a path to the font file, while iOS references by Unique Identifier. I believe the map would require font name, style, weight, IsBold, IsItalics... and then the identifiers required for each platform. There may be other ways to create the map.

    eric.e.swanson supported this idea  · 

Feedback and Knowledge Base