Commit 696ee2ec authored by Gelgon's avatar Gelgon

svg option | with fonte

parent 54382b30
......@@ -18,10 +18,11 @@
<script charset="utf-8">
MichaelJson({
glyphs: ['/', '0'],
font: 'Hershey-Noailles-herbier',
glyphs: ['f', 'p', 'i', 'h'],
findColor: 'all',
glyphColor: ['auto'],
freq: [1,3],
freq: [1,10],
rotate: 180,
translateX: 0,
incTransX: 0,
......@@ -29,7 +30,7 @@
incTransY: 0,
scan: ['all'],
incStyle: [
['font-size', 10, 'px', 0],
['font-size', 4, 'px', 0],
['opacity', 1, '', 0]
]
});
......
......@@ -10,6 +10,7 @@ function MichaelJson(enter){
var translX = enter.translateX;
var translY = enter.translateY;
var incStyle = enter.incStyle;
var fontName= enter.font;
function zoomPoster(range, content, fond){
......@@ -48,7 +49,7 @@ function MichaelJson(enter){
style.push(' '+options.style[s][0]+': '+options.style[s][1]+options.style[s][2]);
}
style = style.toString().replace(',', ';');
var finalStyle = 'position: absolute; margin-top: '+posY+'px; margin-left:' + posX + 'px; color: '+glClor+';fill: ' + glClor + '; transform: rotate(' + rotate + 'deg); ' + style;
var finalStyle = 'font-family: '+fontName+'; position: absolute; margin-top: '+posY+'px; margin-left:' + posX + 'px; color: '+glClor+';fill: ' + glClor + '; transform: rotate(' + rotate + 'deg); ' + style;
return finalStyle;
}
......
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