[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: |
Mon, 26 Oct 2020 12:39:35 -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 |
URL:
<https://savannah.gnu.org/bugs/?59355>
Summary: Incorect font size in printed svg
Project: GNU Octave
Submitted by: mpetrasinovic
Submitted on: Mon 26 Oct 2020 04:39:34 PM UTC
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Inaccurate Result
Status: None
Assigned to: None
Originator Name: Miloš Petrašinović
Originator Email:
Open/Closed: Open
Release: 6.0.92
Discussion Lock: Any
Operating System: Microsoft Windows
_______________________________________________________
Details:
After running the following script for fig1.svg I get 494x370 pt and for
fig2.svg I get 560x420 pt while for fig1.png I get 1029x772 px and for
fig2.png I get 560x420px. I can see that there is a difference in displayed
font size (in figure window) and in saved images, also in fig2.svg font size
is not 18pt. Are those expected results?
pos = [300 200 560 420];
figure(1,'paperunits','points','papersize',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');
get(get(f,'Parent'),'screenpixelsperinch') % ans = 81.597
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?59355>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #59355] Incorect font size in printed svg,
Miloš Petrašinović <=