Add bullet of text to Master
Hi, I want to add bullet of text to Master. but I can't change the fontsize, the word font size always 18. below is my code. please help me. My import js is: /PptxGenJS/libs/jquery.min.js /PptxGenJS/libs/jszip.min.js /PptxGenJS/libs/promise.min.js /PptxGenJS/dist/pptxgen.js /PptxGenJS/dist/pptxgen.shapes.js
-------- my code is below ------------
pptx.defineSlideMaster({
title: 'MASTER_BACKUP',
bkgd: 'FFFFFF',
margin: [ 0, 0, 0, 0 ],
objects: [
{ 'text': { text:
[
{ text:'Bullet one', options:{ fontSize:24, bullet:true, color:'99ABCC' } },
{ text:'Indent-Level 1', options:{ fontSize:32, bullet:true, color:'FFFF00', indentLevel:1 } },
{ text:'Indent-Level 2', options:{ fontSize:42, bullet:true, color:'0088CC', indentLevel:2 } },
{ text:'Indent-Level 3', options:{ fontSize:48, bullet:true, color:'CC88BB', indentLevel:3 } },
{ text:'Indent-Level 3', options:{ fontSize:48, bullet:true, color:'CC88BB', indentLevel:3 } },
{ text:'Indent-Level 2', options:{ fontSize:42, bullet:true, color:'0088CC', indentLevel:2 } },
{ text:'Indent-Level 2', options:{ fontSize:42, bullet:true, color:'0088CC', indentLevel:2 } },
{ text:'Indent-Level 1', options:{ fontSize:32, bullet:true, color:'FFFF00', indentLevel:1 } },
{ text:'Bullet no indent', options:{ fontSize:24, bullet:true, color:'99ABCC' } },
{ text:'Bullet Last', options:{ fontSize:24, bullet:true, color:'99ABCC' } }
],
options:{ x:0, y:0.5, w:'100%',h:6.0,fontFace:'Arial',fontSize:24}
}
}
]
});
该提问来源于开源项目:gitbrent/PptxGenJS
weixin_39627699
2020/11/22 16:24- 点赞
- 收藏
- 回答
4个回复
