Skip to content

Commit b8c75c0

Browse files
committed
better test of alternate Drawing.font syntax
1 parent d1e3448 commit b8c75c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/drawing/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var drawing = module.exports = {};
3434

3535
drawing.font = function(s, family, size, color) {
3636
// also allow the form font(s, {family, size, color})
37-
if(family && family.family) {
37+
if(Lib.isPlainObject(family)) {
3838
color = family.color;
3939
size = family.size;
4040
family = family.family;

0 commit comments

Comments
 (0)