[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #59355] Incorect font size in printed svg
From: |
Miloš Petrašinović |
Subject: |
[Octave-bug-tracker] [bug #59355] Incorect font size in printed svg |
Date: |
Sat, 31 Oct 2020 12:48:34 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36 |
Follow-up Comment #2, bug #59355 (project octave):
Thank you for all clarifications about this mechanism. I would like to see
somewhere in documentation this simple explanation (or some wiki page).
Your last sentence is the reason I wrote this way title for this bug report.
For fig2.svg I get 20.5889pt font size, after running following script:
pos = [300 200 560 420];
figure(1,'paperunits','points','papersize',pos(3:4),...
'paperposition', [0,0,pos(3:4)])
plot([0,1],[0,1]);
set(gca,'fontunits','points','fontsize',18,'FontName','Arial');
print('fig1.svg','-dsvg');
print('fig1.png','-dpng');
print('fig2.svg','-dsvg',['-S' num2str(pos(3)) ',' num2str(pos(4))],'-F:18');
print('fig2.png','-dpng',['-S' num2str(pos(3)) ',' num2str(pos(4))],'-F:18');
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59355>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/