31#include "musx/dom/Fundamentals.h"
32#include "musx/dom/MusxInstance.h"
88 static std::string
toSvg(
const dom::others::ShapeDef& shape);
95 static std::string
toSvg(
const dom::others::ShapeDef& shape,
104 static std::string
toSvg(
const dom::others::ShapeDef& shape,
116 static std::string
toSvg(
const dom::others::ShapeDef& shape,
130 double scaling = 1.0,
Represents the default font settings for a particular element type.
Definition CommonClasses.h:66
Converts a Shape Designer definition into an SVG buffer.
Definition SvgConvert.h:47
std::function< std::optional< GlyphMetrics >(const dom::FontInfo &, std::u32string_view)> GlyphMetricsFn
Optional callback that returns glyph metrics in EVPU units.
Definition SvgConvert.h:77
static std::string presetArrowheadAsSvg(dom::ArrowheadPreset preset, double scaling=1.0, SvgUnit unit=SvgUnit::None)
Convert a Finale preset arrowhead into a standalone SVG string buffer.
Definition SvgConvert.cpp:2682
static std::string toSvg(const dom::others::ShapeDef &shape)
Convert a ShapeDef into an SVG string buffer.
Definition SvgConvert.cpp:1047
SvgUnit
SVG unit suffixes supported by the converter.
Definition SvgConvert.h:53
@ None
Unitless (no suffix).
static std::string toSvgWithPageFormatScaling(const dom::others::ShapeDef &shape, SvgUnit unit=SvgUnit::Millimeters)
Convert a ShapeDef into an SVG string buffer using the document's page format scaling.
Definition SvgConvert.cpp:2743
double EvpuFloat
EVPU fractional value (288.0 per inch)
Definition Fundamentals.h:58
ArrowheadPreset
Finale-defined arrowhead presets.
Definition EnumClasses.h:52
object model for musx file (enigmaxml)
Definition BaseClasses.h:36
Metrics for sizing SVG text bounds.
Definition SvgConvert.h:65
dom::EvpuFloat advance
The advance width of the text in EVPU units.
Definition SvgConvert.h:67
dom::EvpuFloat ascent
The ascent above the baseline in EVPU units.
Definition SvgConvert.h:69
dom::EvpuFloat descent
The descent below the baseline in EVPU units (positive value).
Definition SvgConvert.h:71