From 864eab588ad196400dd09354a6b7224db1db080c Mon Sep 17 00:00:00 2001 From: Sotiri Bakagiannis Date: Mon, 17 May 2021 14:26:06 +0100 Subject: [PATCH] visual/Slider: clean up JSDoc for font, use Arial by default --- src/visual/Slider.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/visual/Slider.js b/src/visual/Slider.js index 53c596e..aceea0d 100644 --- a/src/visual/Slider.js +++ b/src/visual/Slider.js @@ -44,7 +44,7 @@ import {PsychoJS} from "../core/PsychoJS"; * and labels with respect to the central bar * @param {boolean} [options.readOnly= false] - whether or not the slider is read only * - * @param {string} [options.fontFamily= 'Helvetica'] - the text font + * @param {string} [options.font= 'Arial'] - the text font * @param {boolean} [options.bold= true] - whether or not the font of the labels is bold * @param {boolean} [options.italic= false] - whether or not the font of the labels is italic * @param {number} [options.fontSize] - the font size of the labels (in pixels), the default fontSize depends on the @@ -130,7 +130,7 @@ export class Slider extends util.mix(VisualStim).with(ColorMixin, WindowMixin) this._addAttribute( 'font', font, - 'Helvetica', + 'Arial', this._onChange(true, true) ); this._addAttribute(