Commit dd2c6b3a authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55741 954022d7-b5bf-4e40-9824-e11837661b57
parent c523eb3e
...@@ -459,105 +459,4 @@ window.native.Call_VR_Header = function(_header_top, _header_bottom) ...@@ -459,105 +459,4 @@ window.native.Call_VR_Header = function(_header_top, _header_bottom)
window.native.Call_VR_Table = function(_params, _cols, _margins, _rows) window.native.Call_VR_Table = function(_params, _cols, _margins, _rows)
{ {
return _api.Call_VR_Table(_params, _cols, _margins, _rows); return _api.Call_VR_Table(_params, _cols, _margins, _rows);
}; };
\ No newline at end of file
// font engine -------------------------------------
function CPointer()
{
this.obj = null;
this.data = null;
this.pos = 0;
}
function dublicate_pointer(p)
{
if (null == p)
return null;
var d = new CPointer();
d.data = p.data;
d.pos = p.pos;
return d;
}
function copy_pointer(p, size)
{
var _p = g_memory.Alloc(size);
for (var i = 0; i < size; i++)
_p.data[i] = p.data[p.pos + i];
return _p;
}
function FT_Memory()
{
this.canvas = document.createElement('canvas');
this.canvas.width = 1;
this.canvas.height = 1;
this.ctx = this.canvas.getContext('2d');
this.Alloc = function(size)
{
var p = new CPointer();
p.obj = this.ctx.createImageData(1,parseInt((size + 3) / 4));
p.data = p.obj.data;
p.pos = 0;
return p;
}
this.AllocHeap = function()
{
// TODO: , .
// , ??
}
this.CreateStream = function(size)
{
console.log("not impl");
}
}
var g_memory = new FT_Memory();
var FONT_ITALIC_ANGLE = 0.3090169943749;
var FT_ENCODING_UNICODE = 1970170211;
var FT_ENCODING_NONE = 0;
var FT_ENCODING_MS_SYMBOL = 1937337698;
var FT_ENCODING_APPLE_ROMAN = 1634889070;
var LOAD_MODE = 40970;
var REND_MODE = 0;
var FontStyle =
{
FontStyleRegular: 0,
FontStyleBold: 1,
FontStyleItalic: 2,
FontStyleBoldItalic: 3,
FontStyleUnderline: 4,
FontStyleStrikeout: 8
};
var EGlyphState =
{
glyphstateNormal: 0,
glyphstateDeafault: 1,
glyphstateMiss: 2
};
function CPoint1()
{
this.fX = 0;
this.fY = 0;
this.fWidth = 0;
this.fHeight = 0;
};
function CPoint2()
{
this.fLeft = 0;
this.fTop = 0;
this.fRight = 0;
this.fBottom = 0;
};
function CFontManager()
{
this.m_oLibrary = new Object();
this.Initialize = function(){};
};
// -------------------------------------------------
\ No newline at end of file
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