@ -778,18 +778,14 @@ class Label {
strokeWidth : this . fontOptions . strokeWidth ,
strokeWidth : this . fontOptions . strokeWidth ,
strokeColor : this . fontOptions . strokeColor
strokeColor : this . fontOptions . strokeColor
} ;
} ;
if ( mod === "normal" ) {
if ( selected || hover ) {
if ( ( this . fontOptions . chooser === true ) && ( this . elementOptions . labelHighlightBold ) ) {
if ( selected || hover ) {
if ( mod === "normal" && ( this . fontOptions . chooser === true ) && ( this . elementOptions . labelHighlightBold ) ) {
values . mod = 'bold' ;
values . mod = 'bold' ;
} else if ( typeof this . fontOptions . chooser === 'function' ) {
this . fontOptions . chooser ( ctx , values , this . elementOptions . id , selected , hover ) ;
} else {
if ( typeof this . fontOptions . chooser === 'function' ) {
this . fontOptions . chooser ( values , this . elementOptions . id , selected , hover ) ;
}
}
}
}
} else {
if ( ( selected || hover ) && ( typeof this . fontOptions . chooser === 'function' ) ) {
this . fontOptions . chooser ( ctx , values , this . elementOptions . id , selected , hover ) ;
}
}
}
ctx . font = ( values . mod + " " + values . size + "px " + values . face ) . replace ( /"/g , "" ) ;
ctx . font = ( values . mod + " " + values . size + "px " + values . face ) . replace ( /"/g , "" ) ;
values . font = ctx . font ;
values . font = ctx . font ;