If I comment out https://gitlab.com/inkscape/inkscape/blob/master/src/libnrtype/Layout-TNG-Compute.cpp#L806, the position in the vertical direction matches the horozontal one, though I don’t understand why since this should be shifting all glyphs by the same amount.
username-removed-1132948 (2fa5e34a) at 06 Oct 16:22
Fix baseline shift movement direction
username-removed-1132948 (09852e0b) at 06 Oct 10:57
Fix baseline shift movement direction
Should be fixed in !93.
This was broke in 2abe0bb681044d972e171189395a2afdbc39bf28 when delta_y was applied in the opposite Y direction but baseline_shift was kept unchanged.
username-removed-1132948 (39a19eb3) at 06 Oct 09:06
Fix baseline shift movement direction
... and 113 more commits
Do you have test file(s) for baseline-shift
?
The direction of the text is determined by the Unicode Bidirectional Text Algorithm (UBA).
The ‘direction’ property set UBA’s “paragraph direction”, which is the overall direction of the text (i.e. is this a primarily a left-to-right or right-to-left paragraph).
The ‘unicode-bidi’ property emulates UBA’s “explicit directional formatting characters”. I think Inkscape can support it by inserting the formatting characters to the text being sent to Pango (though Pango does not yet support the isolates).
I’m not really sure this change simplifies things that much, though. I’d prefer simple LTR/RTL buttons for the direction property and drop down lists for wriring-mode and orientation. This would be the closest to what other applications provide.
Do we use FontConfig on all platforms? If so, we can FcConfigAppFontAddFile/FcConfigAppFontAddDir to add arbitrary fonts to the font configuration (it should work with Pango as well, might need to fiddle with PangoFontMap, though). Windows and macOS have similar APIs.
This should be fine to e.g. add fonts bundled with Inkscape during testing, but it wouldn’t work with CSS @font-face since the fonts should be available only to the current document not the whole application, also these fonts often has broken name table (and other tables not needed by web browsers) and might not work with FontConfig and the other font management APIs, or even they may have font used by installed fonts and would confuse the said APIs.
I reported the Pango issue here: https://bugzilla.gnome.org/show_bug.cgi?id=787526, once this is fixed we can look into fixing it in Inkscape as well.
username-removed-1132948 (b0e00d7b) at 06 Sep 08:56
username-removed-1132948 (5eec8f2b) at 16 Aug 11:35
Fix RTL glyph widths in vertical orientation
... and 2 more commits
It should be present (at least in desktop images). Alternatively, what about using CSS @font-face
and put the fonts next to the SVG file (all fonts are under Open Font License)?