Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Respect the current font size, even if we can't respect the current f…

…ont, for text fields
  • Loading branch information...
commit 45ad6e62ad4a5e70308e54ddb1fd253dcb1d8679 1 parent 16e1a5a
@bradediger bradediger authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/prawn/forms.rb
View
3  lib/prawn/forms.rb
@@ -23,7 +23,8 @@ def text_field(name, x, y, w, h, opts = {})
x, y = map_to_absolute(x, y)
field_dict = {:T => Prawn::Core::LiteralString.new(name),
- :DA => Prawn::Core::LiteralString.new("/Helv 0 Tf 0 g"),
+ :DA => Prawn::Core::LiteralString.new(
+ "/Helv #{font_size} Tf 0 g"),
:F => 4,
:Ff => flags_from_options(opts),
:BS => {:Type => :Border, :W => 1, :S => :S},

0 comments on commit 45ad6e6

Please sign in to comment.
Something went wrong with that request. Please try again.