mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-04 11:54:47 +00:00
Update itext.js
This commit is contained in:
parent
c16b525d41
commit
8ec69e19de
1 changed files with 3 additions and 2 deletions
|
|
@ -593,7 +593,8 @@
|
|||
styles: {
|
||||
0: {
|
||||
0: { fill: '#112233' },
|
||||
2: { stroke: '#223344', fontFamily: 'Engagement' }
|
||||
2: { stroke: '#223344', fontFamily: 'Engagement' },
|
||||
3: { backgroundColor: '#00FF00' }
|
||||
}
|
||||
},
|
||||
fontFamily: 'Plaster'
|
||||
|
|
@ -601,7 +602,7 @@
|
|||
fabric.fontPaths = {
|
||||
Engagement: 'path-to-engagement-font-file',
|
||||
Plaster: 'path-to-plaster-font-file',
|
||||
}
|
||||
};
|
||||
canvas.add(iText);
|
||||
equal(typeof iText.toSVG, 'function');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue