We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Once a text selection is made, I cannot change the font size for the entire itext object.
// clear canvas canvas.clear(); var t = new fabric.IText("Hello world !", { top: 100, left: 100, fontSize: 12, });
canvas.add(t); canvas.setActiveObject(t); t.selectAll(); var style = { }; style['fontSize'] = 84; style['textBaseline'] = 'bottom'; t.setSelectionStyles(style); canvas.renderAll(); canvas.discardActiveObject(); canvas.setActiveObject(t); t.setFontSize(48); canvas.renderAll();
The text was updated successfully, but these errors were encountered:
that is true, and you can found an another issue. A style object cleaning is necessary. i mark it as a bug till i found the other issue.
Sorry, something went wrong.
I was wrong as labelling as a bug. You are setting the font Size for all selection, so this is gonna stay untill you remove it.
There is a little bug anyway in setSelectionStyle that is adding too much properties to the latest style object in the selection.
I will investigate.
Successfully merging a pull request may close this issue.
Once a text selection is made, I cannot change the font size for the entire itext object.
// clear canvas
canvas.clear();
var t = new fabric.IText("Hello world !", {
top: 100,
left: 100,
fontSize: 12,
});
canvas.add(t);
canvas.setActiveObject(t);
t.selectAll();
var style = { };
style['fontSize'] = 84;
style['textBaseline'] = 'bottom';
t.setSelectionStyles(style);
canvas.renderAll();
canvas.discardActiveObject();
canvas.setActiveObject(t);
t.setFontSize(48);
canvas.renderAll();
The text was updated successfully, but these errors were encountered: