Skip to content

Commit

Permalink
0.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhenye committed Dec 29, 2019
1 parent 8847572 commit 4330b77
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/ass.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ var cache = Object.create(null);
function getRealFontSize(fn, fs) {
var key = fn + "-" + fs;
if (!cache[key]) {
$fixFontSize.style.cssText = "font-size:" + fs + "px;font-family:\"" + fn + "\",Arial;";
$fixFontSize.style.cssText = "line-height:normal;font-size:" + fs + "px;font-family:\"" + fn + "\",Arial;";
cache[key] = fs * fs / $fixFontSize.clientHeight;
}
return cache[key];
Expand Down
6 changes: 3 additions & 3 deletions dist/ass.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global.ASS = factory());
}(this, function () { 'use strict';
}(this, (function () { 'use strict';

function parseEffect(text) {
var param = text
Expand Down Expand Up @@ -1011,7 +1011,7 @@
function getRealFontSize(fn, fs) {
var key = fn + "-" + fs;
if (!cache[key]) {
$fixFontSize.style.cssText = "font-size:" + fs + "px;font-family:\"" + fn + "\",Arial;";
$fixFontSize.style.cssText = "line-height:normal;font-size:" + fs + "px;font-family:\"" + fn + "\",Arial;";
cache[key] = fs * fs / $fixFontSize.clientHeight;
}
return cache[key];
Expand Down Expand Up @@ -2058,4 +2058,4 @@

return ASS;

}));
})));
2 changes: 1 addition & 1 deletion dist/ass.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "assjs",
"version": "0.0.10",
"version": "0.0.11",
"description": "A JavaScript ASS subtitle format renderer",
"main": "dist/ass.js",
"module": "dist/ass.esm.js",
Expand Down

0 comments on commit 4330b77

Please sign in to comment.