View Single Post
Posts: 13 | Thanked: 5 times | Joined on Jan 2010
#39
Originally Posted by 白い熊 View Post
I have it working perfectly.

Make sure, you got ttf-droid installed.

Then add this to .emacs:

(set-default-font "-unknown-Droid Sans Mono-normal-normal-normal-*-20-*-*-*-m-0-iso10646-1")
(require 'maxframe)
(add-hook 'window-setup-hook 'maximize-frame t)
(maximize-frame)

I tried a variety of things, to no avail.

I have ttf-droid installed:
Code:
~ $ dpkg -l '*droid*'
ii  ttf-droid      1.01-dfsg0maem Font, used by Google's Android, with extensi
I have the necessary code in .emacs:
Code:
(set-default-font "-unknown-Droid Sans Mono-normal-normal-normal-*-20-*-*-*-m-0-
(add-to-list 'load-path "/usr/local/share/elisp")                               
(require 'maxframe)                                                             
(add-hook 'window-setup-hook 'maximize-frame t)                                 
(maximize-frame)
The only difference to your code above is the add-to-list statement. I know that maxframe.el is loaded on startup, as invoking describe-function for "mf" gives me
[CODE
]mf is an alias for `maximize-frame' in `maxframe.el'.

(mf)

Maximizes the frame to fit the display if under a windowing
system.
[/CODE]
Also, changing the "20" in the set-default-font statement does change the font size, so I know that the startup file is processed. The attached screenshot shows the emacs window I'm getting.
Either I'm stupidly missing something obvious, or the frame size problem has changed somehow.

I'd appreciate any pointers.

Best regards & thanks in advance, Jan
Attached Images