Commit 70195567 authored by Alexey.Musinov's avatar Alexey.Musinov Committed by Alexander.Trofimov

[ios] tables

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@62916 954022d7-b5bf-4e40-9824-e11837661b57
parent a6c2cae6
......@@ -413,7 +413,6 @@
this.ppiX = parseInt(this.ppiX * this.deviceScale, 10);
this.ppiY = parseInt(this.ppiY * this.deviceScale, 10);
ppiTest.remove();
this._mct = new Matrix(); // units transform
......@@ -423,6 +422,8 @@
this._mift = new Matrix(); // inverted full transform
this._im = new Matrix();
this.nppiX = parseInt(this.ppiX * this.deviceScale, 10);
this.scaleFactor = 1;
this.units = 3/*mm*/;
......@@ -863,7 +864,9 @@
this.font.copyFrom(font);
// sample: 132 (ipad) * device_scale(is_retina=2) / 96 (default) * 2.54
this.font.FontSize = this.font.FontSize * this.deviceDPI * this.deviceScale / this.ppiX * 2.54;
///var rel = this.ppiX / this.nppiX
this.font.FontSize = this.font.FontSize * this.deviceDPI * this.deviceScale / this.nppiX * 2.54 * this.scaleFactor * this.deviceScale;// * rel;
italic = true === font.Italic;
bold = true === font.Bold;
......@@ -925,17 +928,17 @@
this.nctx["PD_LoadFont"](_info.Path, _info.FaceIndex, this.font.FontSize, flag);
var dKoef = g_dKoef_pt_to_mm * font.FontSize / napi_fontInfo[3];
this.napi_fmt[0].m_lUnits_Per_Em = napi_fontInfo[3];
this.napi_fmt[0].m_lAscender = napi_fontInfo[0];// * dKoef;
this.napi_fmt[0].m_lDescender = napi_fontInfo[2];// * dKoef;
this.napi_fmt[0].m_lLineHeight = napi_fontInfo[2];// * dKoef;
this.napi_fmt[3].m_lUnits_Per_Em = napi_fontInfo[3];
this.napi_fmt[3].m_lAscender = napi_fontInfo[0];// * dKoef;
this.napi_fmt[3].m_lDescender = napi_fontInfo[2];// * dKoef;
this.napi_fmt[3].m_lLineHeight = napi_fontInfo[2];// * dKoef;
//var dKoef = g_dKoef_pt_to_mm * font.FontSize / napi_fontInfo[3];
//
//this.napi_fmt[0].m_lUnits_Per_Em = napi_fontInfo[3];
//this.napi_fmt[0].m_lAscender = napi_fontInfo[0];// * dKoef;
//this.napi_fmt[0].m_lDescender = napi_fontInfo[2];// * dKoef;
//this.napi_fmt[0].m_lLineHeight = napi_fontInfo[2];// * dKoef;
//
//this.napi_fmt[3].m_lUnits_Per_Em = napi_fontInfo[3];
//this.napi_fmt[3].m_lAscender = napi_fontInfo[0];// * dKoef;
//this.napi_fmt[3].m_lDescender = napi_fontInfo[2];// * dKoef;
//this.napi_fmt[3].m_lLineHeight = napi_fontInfo[2];// * dKoef;
r = true;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment