search for: line_width

Displaying 13 results from an estimated 13 matches for "line_width".

2007 Oct 14
1
libswfdec/swfdec_text_field.c
...pango_layout_set_spacing (playout, block->leading); pango_layout_set_tabs (playout, block->tab_stops); @@ -235,6 +235,20 @@ swfdec_text_field_generate_layouts (SwfdecTextField *text, cairo_t *cr, } else { + if (block->align != PANGO_ALIGN_LEFT) { + int line_width; + pango_layout_get_pixel_size (playout, &line_width, 0); + if (line_width < width) { + if (block->align == PANGO_ALIGN_RIGHT) { + layout->render_offset_x += width - line_width; + } else if (block->align == PANGO_ALIGN_CENTER) { + layout->render_offset_x +...
2007 Oct 17
0
libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie.c
...e_num); - skip_new = line->start_index + line->length - (length - skip); - pango_layout_set_text (playout, - paragraphs[i].text + block->index_ + skip, - length - skip + skip_new); - skip = skip_new; - } - else - { - if (block->align != PANGO_ALIGN_LEFT) { - int line_width; - pango_layout_get_pixel_size (playout, &line_width, 0); - if (line_width < width) { - if (block->align == PANGO_ALIGN_RIGHT) { - layout.render_offset_x += width - line_width; - } else if (block->align == PANGO_ALIGN_CENTER) { - layout.render_offset_x += (width...
2012 Jun 29
3
how to add the sample number in the hist figure
hi,R-users: Now I plot some data with the name(aveobsdata) in column , How can I add the some number(e,g. the sample number) in each of the column? plot(aveobsdata,type='h',lwd=line_width,col=line_col,main=titleinfo,xlab=xxlab,ylab=yylab,xaxt = "n") axis(1, at = 1:nums, label = name) --
2007 Oct 19
1
3 commits - libswfdec/swfdec_html_parser.c libswfdec/swfdec_text_field_movie.c
libswfdec/swfdec_html_parser.c | 89 +++++++++++++++++++++++------------- libswfdec/swfdec_text_field_movie.c | 1 2 files changed, 60 insertions(+), 30 deletions(-) New commits: commit b4c20d7519ae5d93c9ba3258bde8444aebdd1be6 Author: Pekka Lampila <pekka.lampila at iki.fi> Date: Fri Oct 19 15:32:39 2007 +0300 If closing tag doesn't match in the HTML parser, close tags
2007 Oct 15
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_video.c libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...-(block->left_margin + block->block_indent)); - layout->render_offset_x += indent; + layout.render_offset_x += indent; width += -indent; } @@ -240,9 +237,9 @@ swfdec_text_field_generate_layouts (SwfdecTextField *text, cairo_t *cr, pango_layout_get_pixel_size (playout, &line_width, 0); if (line_width < width) { if (block->align == PANGO_ALIGN_RIGHT) { - layout->render_offset_x += width - line_width; + layout.render_offset_x += width - line_width; } else if (block->align == PANGO_ALIGN_CENTER) { - layout->render_offset_x += (wi...
2007 Apr 13
0
5 commits - libswfdec/Makefile.am libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_font.c libswfdec/swfdec_loadertarget.c libswfdec/swfdec_movie.h libswfdec/swfdec_pattern.c libswfdec/swfdec_pattern.h libswfdec/swfdec_player.c
...roke->start_width; - } else if (ratio == 65535) { - width = stroke->end_width; - } else { - width = (stroke->start_width * (65535 - ratio) + stroke->end_width * ratio) / 65535; - } - if (width < SWFDEC_TWIPS_SCALE_FACTOR) - width = SWFDEC_TWIPS_SCALE_FACTOR; - cairo_set_line_width (cr, width); - cairo_stroke (cr); -} - -static void -swfdec_stroke_pattern_class_init (SwfdecStrokePatternClass *klass) -{ - SWFDEC_PATTERN_CLASS (klass)->paint = swfdec_stroke_pattern_paint; -} - -static void -swfdec_stroke_pattern_init (SwfdecStrokePattern *pattern) -{ -} - /*** COLOR PATTE...
2006 Feb 28
0
Word wrap regexp question
>From the rails helper, there''s a text wrap method that does this (I''ve removed the trailing .strip): text.gsub(/\n/, "\n\n").gsub(/(.{1,#{line_width}})(\s+|$)/, "\\1\n") The way I read this, it''s "replace every newline with two newlines (and it''s not clear to me either what this first part is supposed to accomplish), then replace each instance of the longest string you can under the line length with that string...
2009 Sep 12
0
[PATCH 11/13] nv50: add support for light-twoside
...mode @@ -276,6 +275,9 @@ nv50_rasterizer_state_create(struct pipe_context *pipe, so_method(so, tesla, 0x1684, 1); so_data (so, cso->flatshade_first ? 0 : 1); + so_method(so, tesla, NV50TCL_VERTEX_TWO_SIDE_ENABLE, 1); + so_data (so, cso->light_twoside); + so_method(so, tesla, NV50TCL_LINE_WIDTH, 1); so_data (so, fui(cso->line_width)); so_method(so, tesla, NV50TCL_LINE_SMOOTH_ENABLE, 1); -- 1.6.3.3 --------------010208090904000401070505 Content-Type: text/plain; name="0012-nv50-add-support-for-point-size-per-vertex.patch" Content-Transfer-Encoding: 7bit Content-Dispos...
2006 Nov 12
1
[PATCH] Annotate shapes, text and dbus support
...048 +0000 @@ -24,6 +24,8 @@ */ #include <stdlib.h> +#include <math.h> +#include <string.h> #include <cairo-xlib-xrender.h> #include <compiz.h> @@ -41,16 +43,38 @@ #define ANNO_COLOR_GREEN_DEFAULT 0x0000 #define ANNO_COLOR_BLUE_DEFAULT 0x0000 +#define ANNO_LINE_WIDTH_MIN 0.1f +#define ANNO_LINE_WIDTH_MAX 100.0f +#define ANNO_LINE_WIDTH_DEFAULT 3.0f +#define ANNO_LINE_WIDTH_PRECISION 0.1f + +#define ANNO_STROKE_WIDTH_MIN 0.1f +#define ANNO_STROKE_WIDTH_MAX 20.0f +#define ANNO_STROKE_WIDTH_DEFAULT 1.0f +#define ANNO_STROKE_WIDTH...
2010 Feb 26
5
[PATCH 0/5] renouveau: nv30/nv40 unification
This patchset applies some minor fixes to renouveau.xml and then unifies the nv30 and nv40 register definitions. nv30 and nv40 are very similar and have the same offsets for the registers they share. The major differences are: 1. Texture setup is different due to full NPOT support on nv40 2. More advanced blending/render targets on nv40 3. NV30 has fixed function registers, which NV40 lacks The
2009 Dec 30
4
[PATCH 1/3] nv50: remove vtxbuf stateobject after a referenced vtxbuf is mapped
- This avoids problematic "reloc'ed while mapped" messages and some associated corruption as well. Signed-off-by: Maarten Maathuis <madman2003 at gmail.com> --- src/gallium/drivers/nouveau/nouveau_screen.c | 21 +++++++++++++++++++++ src/gallium/drivers/nouveau/nouveau_screen.h | 3 +++ src/gallium/drivers/nouveau/nouveau_stateobj.h | 13 +++++++++++++
2007 Oct 29
0
20 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_html_parser.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h
...es (playout, attr_list); + pango_attr_list_unref (attr_list); pango_layout_set_text (playout, paragraphs[i].text + block->index_ + skip, @@ -521,9 +502,9 @@ swfdec_text_field_movie_get_layouts (SwfdecTextFieldMovie *text, int *num, pango_layout_get_pixel_size (playout, &line_width, 0); if (line_width < width) { if (block->align == PANGO_ALIGN_RIGHT) { - layout.render_offset_x += width - line_width; + layout.offset_x += width - line_width; } else if (block->align == PANGO_ALIGN_CENTER) { - layout.render_offset_x += (width - line_widt...
2010 Aug 06
4
nv vpe video decoder
Hello, I have my work on the nv vpe video decoder in a functional state. In case you didn't know this decoder accelerates mpeg2 video at the idct/mc level. I have verified that it works on nv40 hardware. I believe it works on nv30 hardware (and maybe some earlier hardware), but I cannot verify since I have none. I will reply with patches against the kernel, drm, ddx and mesa for