On Mon, Apr 27, 2020 at 10:40:18AM -0400, James K. Lowden via X11-users wrote: > I use mupdf on Ubutu on a VMware process on my MacBook Pro, via remote > X on ssh. It works great, and I don't know why. Specifically, I don't > know what font it uses. How can I find out without tracing through the > code in gdb? > > mupdf uses OpenGL, but on a headless virtual machine, OpenGL devolves > to simple X11 using GLUT and xlib. Therefore, I should be able to > produce a window with identical text and font using xlib directly. But > no amount of experimentation and intuition using xfontsel has yielded a > font that looks anywhere near as good as what mupdf displays. > > It might be more than a matter of simply choosing the right font > (although one must nearly always start somewhere). I don't think it's > anything too fancy. For example, there's no xrandr support: > > $ xrandr --listproviders > Providers: number : 0 > > The xtrace listing looks very much like the ltrace listing. It barely > mentions fonts, and it says it ... uses pointers:
If it's using TrueType fonts, those won't be (very) noticeable in xtrace listings, since those are drawn on the client side. (If this were some other platform, strace, ktrace or truss would be a suitable tool to see which files are opened, but MacOS seems to have made that harder). According to the package description, https://packages.debian.org/sid/mupdf it does use freetype2 (which has a debugging trace -- _not_ enabled in the packaged version). It doesn't appear that harfbuzz has a user-enable-able trace either. However, if you're able to use strace on the Ubuntu machine to trace the mupdf process, you'll probably find the information needed. -- Thomas E. Dickey <[email protected]> https://invisible-island.net ftp://ftp.invisible-island.net
signature.asc
Description: PGP signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. X11-users mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com This email sent to [email protected]
