(oldFont, newFont)
| 106 | } |
| 107 | |
| 108 | function isSameFont(oldFont, newFont) { |
| 109 | if (oldFont === newFont) { |
| 110 | return true; |
| 111 | } else if (typeof newFont === 'string' || typeof oldFont === 'string') { |
| 112 | return false; |
| 113 | } else { |
| 114 | return ( |
| 115 | newFont.fontSize === oldFont.fontSize && |
| 116 | newFont.fontStyle === oldFont.fontStyle && |
| 117 | newFont.fontVariant === oldFont.fontVariant && |
| 118 | newFont.fontWeight === oldFont.fontWeight && |
| 119 | newFont.fontFamily === oldFont.fontFamily |
| 120 | ); |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | /** Render Methods */ |
| 125 |