mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-09 15:50:21 +00:00
(FONT_WIDTH, FONT_HEIGHT, FONT_BASE, FONT_MAX_WIDTH):
Support BDF fonts.
This commit is contained in:
parent
640ea3c512
commit
25d9ec8cc4
@ -28,10 +28,15 @@ Boston, MA 02111-1307, USA. */
|
||||
#define BLACK_PIX_DEFAULT(f) PALETTERGB(0,0,0)
|
||||
#define WHITE_PIX_DEFAULT(f) PALETTERGB(255,255,255)
|
||||
|
||||
#define FONT_WIDTH(f) ((f)->tm.tmAveCharWidth)
|
||||
#define FONT_HEIGHT(f) ((f)->tm.tmHeight)
|
||||
#define FONT_BASE(f) ((f)->tm.tmAscent)
|
||||
#define FONT_MAX_WIDTH(f) ((f)->tm.tmMaxCharWidth)
|
||||
#define FONT_WIDTH(f) \
|
||||
((f)->bdf ? (f)->bdf->width : (f)->tm.tmAveCharWidth)
|
||||
#define FONT_HEIGHT(f) \
|
||||
((f)->bdf ? (f)->bdf->height : (f)->tm.tmHeight)
|
||||
/* No idea why 5 seems to work in here, but it does */
|
||||
#define FONT_BASE(f) \
|
||||
((f)->bdf ? (f)->bdf->ury : (f)->tm.tmAscent)
|
||||
#define FONT_MAX_WIDTH(f) \
|
||||
((f)->bdf ? (f)->bdf->width : (f)->tm.tmMaxCharWidth)
|
||||
|
||||
#define CHECK_W32_FRAME(f, frame) \
|
||||
if (NILP (frame)) \
|
||||
|
Loading…
Reference in New Issue
Block a user