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: 

$ grep Font o | cut -b-65
26918 [email protected](0x55b9cebd5400, 68, 0x7ff6e7c
26918 [email protected](0x55b9cebd5400, 0x7ff6e6adf347, 0x7ff
26918 [email protected](0x55b9cebd5400, 0x7ff6
26918 <... XLoadFont resumed> )                  = 0x4400002
26918 <... XCreateFontCursor resumed> )          = 0x4400003
26918 [email protected](0x55b9cebd5400, 60, 0x7ff6e6a
26918 <... XCreateFontCursor resumed> )          = 0x4400004
26918 [email protected](0x55b9cebd5400, 150, 0x7ff6e6
26918 <... XCreateFontCursor resumed> )          = 0x4400005
26918 [email protected](0x55b9cebd5400, 152, 0x7ff6e6
26918 <... XCreateFontCursor resumed> )          = 0x4400006
26918 [email protected](0x55b9cebd5400, 0x4400002, 0, 0 <un
26918 <... XUnloadFont resumed> )                = 1
000:<:0016: 20: Request(45): OpenFont fid=0x04400002 name='cursor
000:<:008e:  8: Request(46): CloseFont font=0x04400002

Not much help there.

Suggestions?  

--jkl



 _______________________________________________
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]
  • font selection James K. Lowden via X11-users

Reply via email to