lib/prawn/svg/elements/text_component.rb in prawn-svg-0.35.1 vs lib/prawn/svg/elements/text_component.rb in prawn-svg-0.36.0

- old
+ new

@@ -44,11 +44,11 @@ apply_font(font) if font # text_anchor and dominant_baseline aren't Prawn options; we have to do some math to support them # and so we handle them in Prawn::SVG::Interface#rewrite_call_arguments opts = { - size: computed_properties.numerical_font_size, + size: computed_properties.numeric_font_size, style: font&.subfamily, text_anchor: computed_properties.text_anchor } unless computed_properties.dominant_baseline == 'auto' @@ -220,11 +220,11 @@ def apply_font(font) add_call 'font', font.name, style: font.subfamily end def calculate_text_rendering_mode - fill = computed_properties.fill != 'none' - stroke = computed_properties.stroke != 'none' + fill = !computed_properties.fill.none? # rubocop:disable Style/InverseMethods + stroke = !computed_properties.stroke.none? # rubocop:disable Style/InverseMethods if fill && stroke :fill_stroke elsif fill :fill