Commit d5218e5c authored by Oleg Korshul's avatar Oleg Korshul

баг с шрифтами (не экспортилась функция)

parent 41ce6df8
...@@ -42,6 +42,7 @@ var FT_Done_Glyph = AscFonts.FT_Done_Glyph; ...@@ -42,6 +42,7 @@ var FT_Done_Glyph = AscFonts.FT_Done_Glyph;
var FT_Outline_Decompose = AscFonts.FT_Outline_Decompose; var FT_Outline_Decompose = AscFonts.FT_Outline_Decompose;
var FT_Render_Glyph = AscFonts.FT_Render_Glyph; var FT_Render_Glyph = AscFonts.FT_Render_Glyph;
var raster_memory = AscFonts.raster_memory; var raster_memory = AscFonts.raster_memory;
var FT_Get_Charmap_Index = AscFonts.FT_Get_Charmap_Index;
var FONT_ITALIC_ANGLE = 0.3090169943749; var FONT_ITALIC_ANGLE = 0.3090169943749;
var FT_ENCODING_UNICODE = 1970170211; var FT_ENCODING_UNICODE = 1970170211;
......
...@@ -41865,4 +41865,5 @@ function FT_CMap_New(clazz, init_data, charmap) ...@@ -41865,4 +41865,5 @@ function FT_CMap_New(clazz, init_data, charmap)
window['AscFonts'].FT_Set_Transform = FT_Set_Transform; window['AscFonts'].FT_Set_Transform = FT_Set_Transform;
window['AscFonts'].FT_Render_Glyph = FT_Render_Glyph; window['AscFonts'].FT_Render_Glyph = FT_Render_Glyph;
window['AscFonts'].raster_memory = raster_memory; window['AscFonts'].raster_memory = raster_memory;
window['AscFonts'].FT_Get_Charmap_Index = FT_Get_Charmap_Index;
})(window); })(window);
...@@ -126,6 +126,11 @@ prot.getImageLocal = function(url){ ...@@ -126,6 +126,11 @@ prot.getImageLocal = function(url){
var _first = this.documentUrl + "/media/"; var _first = this.documentUrl + "/media/";
if (0 == url.indexOf(_first)) if (0 == url.indexOf(_first))
return url.substring(_first.length); return url.substring(_first.length);
if (window.editor && window.editor.ThemeLoader && 0 == url.indexOf(editor.ThemeLoader.ThemesUrlAbs)) {
return url.substring(editor.ThemeLoader.ThemesUrlAbs.length);
}
return null; return null;
}; };
prot.imagePath2Local = function(imageLocal){ prot.imagePath2Local = function(imageLocal){
......
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