Set default font settings for Simulink annotation (comments)
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dimitri
el 10 de Oct. de 2023
Editada: Fangjun Jiang
el 14 de Dic. de 2023
Hello,
For improving visibility of model, I would like to change the defaul font for all anotations: I would like to use Courrier New Black 14 pt. How can I do this programmatically?
3 comentarios
Dyuman Joshi
el 10 de Oct. de 2023
Movida: Dyuman Joshi
el 26 de Oct. de 2023
Ah, okay. I should have noticed the product mentioned as "Simulink".
I will get back to you on this soon.
Respuesta aceptada
Fangjun Jiang
el 14 de Dic. de 2023
Editada: Fangjun Jiang
el 14 de Dic. de 2023
I don't think there is a way to pre-set the default font. But you can do a quick and easy post-processing like this. It will change all the annotations at once.
ano=find_system(ModelName,'FindAll','On','Type','Annotation')
set(ano,'FontName','Arial')
See doc page
web(fullfile(docroot, 'simulink/ug/create-an-annotation-programmatically.html?s_tid=doc_srchtitle'))
Más respuestas (0)
Ver también
Categorías
Más información sobre Programmatic Model Editing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
