Attached is a workaround patch that does the dpi scaling in the emacs Xft font driver. This works by scaling the pixelsize by the frame's y-axis dpi. Thus it's necessary to explicitly set the font's pixelsize in either the .Xresources file or via the command line option --fn (see http://www.gnu.org/software/emacs/manual/html_node/emacs/Fonts.html for font setting methods and parameters).
AFAIK, the pixelsize cannot be set using the .emacs font setting method.
NB: Because of the different emacs binary names in ubuntu, if using the .Xresources font setting method, the resource should be wildcarded. Eg.,
emacs*font: Monospace:pixelsize=8
Attached is a workaround patch that does the dpi scaling in the emacs Xft font driver. This works by scaling the pixelsize by the frame's y-axis dpi. Thus it's necessary to explicitly set the font's pixelsize in either the .Xresources file or via the command line option --fn (see http:// www.gnu. org/software/ emacs/manual/ html_node/ emacs/Fonts. html for font setting methods and parameters).
AFAIK, the pixelsize cannot be set using the .emacs font setting method.
NB: Because of the different emacs binary names in ubuntu, if using the .Xresources font setting method, the resource should be wildcarded. Eg., pixelsize= 8
emacs*font: Monospace: