Use current font for accents (#2066)
* Use current font for accents Fix #353 using `buildCommon.makeSymbol` to automatically determine font for the accent symbol. * Fix screenshots * Fix flow error * Fix file permissions
@@ -94,8 +94,9 @@ export const htmlBuilder: HtmlBuilderSupSub<"accent"> = (grp, options) => {
|
||||
accent = buildCommon.staticSvg("vec", options);
|
||||
width = buildCommon.svgData.vec[1];
|
||||
} else {
|
||||
accent = buildCommon.makeSymbol(
|
||||
group.label, "Main-Regular", group.mode, options);
|
||||
accent = buildCommon.makeOrd({mode: group.mode, text: group.label},
|
||||
options, "textord");
|
||||
accent = assertSymbolDomNode(accent);
|
||||
// Remove the italic correction of the accent, because it only serves to
|
||||
// shift the accent over to a place we don't want.
|
||||
accent.italic = 0;
|
||||
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |