mirror of
https://github.com/konvajs/konva.git
synced 2026-01-24 13:57:25 +08:00
underline drawing bug fixes
This commit is contained in:
@@ -140,6 +140,7 @@
|
||||
|
||||
if (textDecoration === 'underline') {
|
||||
context.save();
|
||||
context.beginPath();
|
||||
context.moveTo(0, Math.round(lineHeightPx / 2));
|
||||
context.lineTo(Math.round(width), Math.round(lineHeightPx / 2));
|
||||
// context
|
||||
|
||||
@@ -82,6 +82,9 @@
|
||||
var fontSize = this.fontSize();
|
||||
|
||||
var glyphInfo = this.glyphInfo;
|
||||
if (textDecoration === 'underline') {
|
||||
context.beginPath();
|
||||
}
|
||||
for(var i = 0; i < glyphInfo.length; i++) {
|
||||
context.save();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user