File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33### Bugfixes
44
55 * Fixed: the line-height property returns different calculation results depending on environment (#71 )
6+ * Fixed: the line-height of a text-block is not recalculated when changing font-size (#72 )
67
78## 0.10.0
89
Original file line number Diff line number Diff line change @@ -655,6 +655,19 @@ thin.core.TblockShape.prototype.setTextLineHeightRatio = function(ratio) {
655655} ;
656656
657657
658+ /**
659+ * @param {string } family
660+ */
661+ thin . core . TblockShape . prototype . setFontFamily = function ( family ) {
662+ goog . base ( this , 'setFontFamily' , family ) ;
663+
664+ var ratio = this . getTextLineHeightRatio ( ) ;
665+ if ( ! thin . isExactlyEqual ( ratio , thin . core . TextStyle . DEFAULT_LINEHEIGHT ) ) {
666+ this . setTextLineHeightRatio ( ratio ) ;
667+ }
668+ } ;
669+
670+
658671/**
659672 * @param {number } size
660673 */
You can’t perform that action at this time.
0 commit comments