resvg: If font-family is not found, no text is rendered
Hi, this is really more of a question than a bug probably. I am setting up a new Windows 10 build server for OpenShot, and noticed that resvg.dll does not render any text. It does in fact render other shapes, gradients, and lines just fine… but anywhere “text” is supposed to be, it renders nothing.
git clone https://github.com/RazrFalcon/resvg
cd resvg/capi
QT_DIR="C:\\msys64\\mingw64\\" cargo build --verbose --release --features="qt-backend"
I compiled resvg on MSYS2 (using the latest version of Qt 5.12.4). No errors were reported during the build. I was also able to link to it with no issues. When OpenShot renders a SVG file though, all text is missing.
So, just curious if this rings a bell or if this is something silly on my part, missing a dependency, etc… If not, what do you suggest as the best way to troubleshoot an issue like this? Thank again!
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (8 by maintainers)
Interesting. It’s actually a
ResvgQt.hbug. I’m querying the default font via Qt and on windows it returnsMS Shell Dlg 2which is just a dummy that points to an actual font viaComputer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes\MS Shell Dlg 2. In case of Win10 it’s Tahoma.So instead of trying to be smart I will simply use the default
Times New Roman.