search for: text_width

Displaying 3 results from an estimated 3 matches for "text_width".

Did you mean: tex_width
2008 Mar 29
1
A patch for extending pdf device to embed popup text and web links
...--- cidfontfamily defaultCIDFont; /* Record if fonts are used */ Rboolean fontUsed[100]; + + /* + * Current text geometry information (stored in PDF_Text) + */ + int text_size; + double text_a, text_b, text_x, text_y; + double text_ascent, text_descent, text_width; } PDFDesc; *************** *** 5188,5197 **** --- 5200,5217 ---- static double PDF_StrWidth(const char *str, const pGEcontext gc, pDevDesc dd); + static void PDF_StrSize(const char *str, + const pGEcontext gc, + pDevDesc dd, + double *ascent_max, + double *descen...
2006 May 05
8
pdf/writer: table.render_on best practices?
...elvetica", { :encoding => "WinAnsiEncoding"}) pdf.text " ", :font_size => 12, :justification => :center s = 9 t = ''Seite <PAGENUM>'' y = pdf.absolute_bottom_margin - 5 x = pdf.absolute_right_margin x -=(pdf.text_width(''Seite XX'', s)) pdf.start_page_numbering(x, y, s, nil, t, nil) pdf.open_object do |heading| pdf.save_state pdf.stroke_color! Color::Black pdf.stroke_style! PDF::Writer::StrokeStyle::DEFAULT s = 9 t = "My title - "...
2007 Nov 29
0
WxRuby + Scintilla avec HTML + JavaScript
...à appliquer pour le JavaScript inclus. ========== début du script ========== require ''wx'' include Wx class MyFrame < Frame def initialize() super( nil, -1, ''test'', [100,100], [500,400] ) @sci = Wx::StyledTextCtrl.new( self ) line_num_margin = @sci.text_width( STC_STYLE_LINENUMBER, "_99999" ) @sci.set_margin_width( 0, line_num_margin ) @sci.set_lexer_language( ''hypertext'' ) @sci.style_clear_all() @sci.style_set_foreground( 0, Wx::Colour.new(0,0,0) ) @sci.style_set_foreground( 1, Wx::Colour.new(0,0,0xFF) ) @sci.sty...