slider: fix pips initial font weight

This commit is contained in:
bordun 2020-05-15 14:35:21 +02:00
parent 88ff9f44c9
commit 43d0cd3a9a
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
"name": "open-stage-control",
"productName": "Open Stage Control",
"description": "Libre and modular OSC / MIDI controller",
"version": "1.0.0-beta2",
"version": "1.0.0-beta3",
"author": {
"name": "Jean-Emmanuel Doucet",
"email": "jean-emmanuel@ammd.net"

View file

@ -335,7 +335,7 @@ module.exports = class Fader extends Slider {
preserveDrawingBuffer: true
})
ctx.font = this.ctx.font
ctx.font = this.fontWeight + ' ' + this.fontSize + 'px ' + this.fontFamily
ctx.textBaseline = this.ctx.textBaseline
ctx.textAlign = this.ctx.textAlign