Windows下gm打浮水印老是報gm convert: Unable to read font (n019003l.pfb)問題

來源:互聯網
上載者:User

標籤:自己的   convert   成功   lin   mat   bre   graph   檔案   上下   

linux下這些欄位直接就裝好了

mac下

brew install ghostscript

這樣就好了

可是Windows就是不成功,因為字型找不到,預設的目錄天知道在哪。。

============

總之

1、網上下一個n019003l.pfp檔案,放在你自己的字型檔夾裡,我直接放在C:\font檔案夾下了

2、找到GraphicsMagick安裝目錄,我的是C:\Program Files\GraphicsMagick-1.3.21-Q16

3、找到type-ghostscript.mgk檔案,開啟

4、搜尋n019003l

<type
  name="Helvetica"
  fullname="Helvetica Regular"
  family="Helvetica"
  foundry="URW"
  weight="400"
  style="normal"
  stretch="normal"
  format="type1"
  metrics="@[email protected]"
  glyphs="@[email protected]"
/>

5、最後兩行

@[email protected]

改成你現在的n019003l.pfp檔案路徑:

  metrics="C:\font\n019003l.afm"
  glyphs="C:\font\n019003l.pfb"

然後就解決了。。

同理,要是列印中文亂碼也可以這樣添加中文字型。

Windows下gm打浮水印老是報gm convert: Unable to read font (n019003l.pfb)問題

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.