Skip to content

SamsaGlyph.prototype.svg has hardcoded width and height #74

@wentin

Description

@wentin

Some fonts are not based on 1000 units, it would be better if the width and height of the SVG can be set dynamically, based on the font data, such as unitsPerEm
Right now it is being hardcoded as width="1000" height="1000"

SamsaGlyph.prototype.svg = function (style={}) {
	...
	return `<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="1000" height="1000">
	<g${style.transform ? ` transform="${style.transform}"` : ""}>
		<path d="${this.svgPath()}"${extra}></path>
	</g>
</svg>`;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions