在Amazon EC2上的Ubuntu获得微软宋体字体 [英] Getting Microsoft Calibri font on Amazon EC2 ubuntu

查看:1028
本文介绍了在Amazon EC2上的Ubuntu获得微软宋体字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用宋体字体在JasperReports的在我的Amazon EC2实例。我怎样才能得到这个工作?我想...

I am trying to use the Calibri font in JasperReports on my Amazon EC2 instance. How can I get this to work? I tried...

sudo apt-get install ttf-mscorefonts-installer
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ttf-mscorefonts-installer is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ttf-mscorefonts-installer' has no installation candidate

我需要能够启动从访问该字体报表中的PHP方法的JVM,但我没有它我的服务器上。我怎样才能得到它?

I need to be able to initiate a JVM from a PHP method which accesses this font for a report, but I don't have it on my server. How can I get it?

推荐答案

使用

wget "http://cl.ly/0m3f0x0c252P3O3t190q/download/Calibri.ttf" -O "~/.fonts/Calibri.ttf"

这将宋体字体保存到您的默认字体目录,所有的应用程序和放大器;脚本可以使用它作为一个正常的字体。

This will save Calibri font to your default fonts directory, and all your apps & scripts can use it as a normal font.

这篇关于在Amazon EC2上的Ubuntu获得微软宋体字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆