search for: font_height

Displaying 8 results from an estimated 8 matches for "font_height".

2006 May 05
8
pdf/writer: table.render_on best practices?
...t = "My title - " + Date.today().to_s w = pdf.text_width(t, s) / 2.0 x = pdf.margin_x_middle y = pdf.absolute_top_margin pdf.add_text(x - w, y, t, s) x = pdf.absolute_left_margin w = pdf.absolute_right_margin y -= (pdf.font_height(s) * 1.01) pdf.line(x, y, w, y).stroke y = pdf.absolute_bottom_margin + pdf.font_height(9) - 2 pdf.line(x, y, w, y).stroke pdf.restore_state pdf.close_object pdf.add_object(heading, :all_pages) end 2) create a table: table = PDF::SimpleTa...
2007 Aug 09
0
[PATCH] linux/x86: retrieve VESA capabilities in dom0
..._info.orig_video_lines = info->u.text_mode_3.rows; screen_info.orig_video_cols = info->u.text_mode_3.columns; screen_info.orig_x = info->u.text_mode_3.cursor_x; @@ -302,7 +312,11 @@ void dom0_init_screen_info(const struct screen_info.orig_video_points = info->u.text_mode_3.font_height; break; + case XEN_VGATYPE_VESA_LFB: + if (size < offsetof(struct dom0_vga_console_info, + u.vesa_lfb.capabilities)) + break; screen_info.orig_video_isVGA = VIDEO_TYPE_VLFB; screen_info.lfb_width = info->u.vesa_lfb.width; screen_info.lfb_height = info-&gt...
2009 Mar 02
0
[PATCH 4 of 13] DisplayState interface change
...return; - gwidth = w; - gheight = h; + gwidth = ds_get_width(ds); + gheight = ds_get_height(ds); curses_calc_pad(); } @@ -169,8 +169,8 @@ clear(); refresh(); curses_calc_pad(); - ds->width = FONT_WIDTH * width; - ds->height = FONT_HEIGHT * height; + ds->surface->width = FONT_WIDTH * width; + ds->surface->height = FONT_HEIGHT * height; vga_hw_invalidate(); invalidate = 0; } @@ -197,8 +197,8 @@ refresh(); curses_calc_pad(); curses_update(ds, 0, 0,...
2007 Mar 30
0
Wine release 0.9.34
...comctl32: toolbar: The default button size is 16x16. comctl32: toolbar: Test standard buttons size. comctl32: toolbar: We shouldn't try to resize standard bitmaps. shell32: autocomplete: Don't use sel uninitialized. user32: combobox: The text area height should be font_height+4. wrc: Add HTML resources support to wrc --verify-translation. wrc: Change the format of the output of "wrc --verify-translation". comctl32: toolbar: TB_HIDEBUTTON and TB_MOVEBUTTON shouldn't force a recalc. Nicolas Delcros (1): gdi32: Don't write a metaf...
2006 Dec 01
0
[PATCH 3/10] Add support for netfront/netback acceleration drivers
...the initial control domain? */ + +typedef struct dom0_vga_console_info { + uint8_t video_type; /* DOM0_VGA_CONSOLE_??? */ +#define XEN_VGATYPE_TEXT_MODE_3 0x03 +#define XEN_VGATYPE_VESA_LFB 0x23 + + union { + struct { + /* Font height, in pixels. */ + uint16_t font_height; + /* Cursor location (column, row). */ + uint16_t cursor_x, cursor_y; + /* Number of rows and columns (dimensions in characters). */ + uint16_t rows, columns; + } text_mode_3; + + struct { + /* Width and height, in pixels. */ +...
2012 Nov 19
2
[PATCH 158/493] video: remove use of __devinit
...nt, static char default_sti_path[21] __read_mostly; #ifndef MODULE -static int __devinit sti_setup(char *str) +static int sti_setup(char *str) { if (str) strlcpy (default_sti_path, str, sizeof (default_sti_path)); @@ -290,7 +290,7 @@ static int __devinitdata font_index[MAX_STI_ROMS], font_height[MAX_STI_ROMS], font_width[MAX_STI_ROMS]; #ifndef MODULE -static int __devinit sti_font_setup(char *str) +static int sti_font_setup(char *str) { char *x; int i = 0; @@ -343,7 +343,7 @@ __setup("sti_font=", sti_font_setup); -static void __devinit +static void sti_dump_glo...
2012 Nov 19
2
[PATCH 158/493] video: remove use of __devinit
...nt, static char default_sti_path[21] __read_mostly; #ifndef MODULE -static int __devinit sti_setup(char *str) +static int sti_setup(char *str) { if (str) strlcpy (default_sti_path, str, sizeof (default_sti_path)); @@ -290,7 +290,7 @@ static int __devinitdata font_index[MAX_STI_ROMS], font_height[MAX_STI_ROMS], font_width[MAX_STI_ROMS]; #ifndef MODULE -static int __devinit sti_font_setup(char *str) +static int sti_font_setup(char *str) { char *x; int i = 0; @@ -343,7 +343,7 @@ __setup("sti_font=", sti_font_setup); -static void __devinit +static void sti_dump_glo...
2012 Nov 19
2
[PATCH 158/493] video: remove use of __devinit
...nt, static char default_sti_path[21] __read_mostly; #ifndef MODULE -static int __devinit sti_setup(char *str) +static int sti_setup(char *str) { if (str) strlcpy (default_sti_path, str, sizeof (default_sti_path)); @@ -290,7 +290,7 @@ static int __devinitdata font_index[MAX_STI_ROMS], font_height[MAX_STI_ROMS], font_width[MAX_STI_ROMS]; #ifndef MODULE -static int __devinit sti_font_setup(char *str) +static int sti_font_setup(char *str) { char *x; int i = 0; @@ -343,7 +343,7 @@ __setup("sti_font=", sti_font_setup); -static void __devinit +static void sti_dump_glo...