I run matlab in batch mode on server, which doesn't have graphics. I generate plots and save them to file as follows:
h = figure;
hold on;
% plotting code
title('some non-ascii title', 'FontName', 'liberation serif');
print(h, 'result', '-depsc');
but it gives me gibberish instead of proper title.
In graphical mode, the same code outputs expected image.
I am using Matlab version 7.6, 2008a. What am I doing wrong?