mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-24 22:54:35 +01:00
floor font on canvas
This commit is contained in:
@@ -272,7 +272,10 @@ const drawElementOnCanvas = (
|
||||
}
|
||||
context.canvas.setAttribute("dir", rtl ? "rtl" : "ltr");
|
||||
context.save();
|
||||
context.font = getFontString(element);
|
||||
context.font = getFontString({
|
||||
...element,
|
||||
fontSize: Math.floor(element.fontSize),
|
||||
});
|
||||
context.fillStyle = element.strokeColor;
|
||||
context.textAlign = element.textAlign as CanvasTextAlign;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user