728x90
320x100
function changeFont() {
var slides = SlidesApp.getActivePresentation().getSlides();
slides.forEach(function(slide) {
var elements = slide.getPageElements();
elements.forEach(function(element) {
try {
if (element.getPageElementType() === SlidesApp.PageElementType.SHAPE) {
var shape = element.asShape();
var text = shape.getText();
if (text && text.asString().trim().length > 0) {
text.getTextStyle().setFontFamily('언어');
}
}
} catch (e) {
Logger.log("err: " + e.message);
}
});
});
Logger.log("굿.");
}
300x250
반응형
GitHub 댓글