nodejs gm ImageMagick Error unable to read font
錯誤資訊:
gm convert: Unable to read font (/usr/local/share/ghostscript/fonts/n019003l.pfb) [No such file or directory].
多半是因為本機的Ghostscript問題,我們可以使用brew命令來安裝下:
Linux
預設是安裝好的,基本不會有這個錯誤
Mac OS
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="@ghostscript_font_dir@n019003l.afm" glyphs="@ghostscript_font_dir@n019003l.pfb" />
5、最後兩行
@ghostscript_font_dir@
改成你現在的n019003l.pfp檔案路徑:
metrics=”C:\font\n019003l.afm”
glyphs=”C:\font\n019003l.pfb”
然後就解決了。。
同理,要是列印中文亂碼也可以這樣新增中文字型。
由龐順龍最後編輯於:2年前
內容均為作者獨立觀點,不代表八零IT人立場,如涉及侵權,請及時告知。
相關文章
- Android Bugs—— Error:In declare-styleable FontFamilyFont, unable to find attribute android:fontAndroidError
- Unable to View Chinese Font When Using Tools>Copy FileView
- nodejs read/write fileNodeJS
- tar:tape read errorError
- [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11Error
- ERROR FIX:- rpmdb: unable to join the environmentError
- mysql之 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 11MySqlError
- pip install scrapy報錯:error: UnableError
- Fatal error in launcher: Unable to create process using '"'Error
- error:unable to get logical block size for spfileErrorBloC
- Unable to read TLD "META-INF/c.tld" from JAR fileJAR
- 手遊gm盒子 遊戲盒子gm版遊戲
- android studio Error:Unable to start the daemon process【轉】AndroidError
- (Error -1170 @ 0x0) Unable to access the DAP)Error
- Oracle Database on NFS : unable to lock file - already in use" ErrorOracleDatabaseNFSError
- rabbitMq的status報錯Error: unable to perform an operation on node ‘rabbit……MQErrorORM
- ORA-07445 ACCESS_VIOLATION,UNABLE_TO_READ問題處理
- font-display和@font-face
- [GuzzleHttp\Exception\RequestException] cURL error 60: SSL certificate problem: unable to get localHTTPExceptionError
- 打補丁報錯Opatch error : "Unable to lock Central InventoryError
- pygame.error: font not initialized的解決及init()到底幹了什麼GAMErrorZed
- 安裝PHP ImageMagick筆記PHP筆記
- MAC中用ImageMagick轉換影像Mac
- nodejs Error: request entity too large解決方案NodeJSError
- Qt FontQT
- 屬性font-family:Font property font-family does not have generic default
- 終端報錯"xcrun: error: unable to find utility “xcodebuild”, not a developer tool orErrorXCodeUIDeveloper
- MySQL 5.7.17 安裝報錯SSL error: Unable to get private key fromMySqlError
- kkjcre1p: unable to spawn jobq slave process, error 1089Error
- CDH5之Unexpected error.Unable to verify database connectionH5ErrorDatabase
- ERROR 1168 (HY000): Unable to open underlying table which isError
- 記錄redis佇列read error on connection to錯誤Redis佇列Error
- yarn add @fortawesome/Font Awesome-free 之後 報錯 EIO: i/o errorYarnError
- gm公益服手機遊戲盒子 gm包站遊戲盒子推薦遊戲
- gm手遊盒子排行榜 手遊gm許可權平臺
- 包站gm手遊平臺 手遊gm平臺代理推薦
- 【ubuntu】解決Unable to determine the device handle for GPU 0000:02:00.0: Unknown ErrorUbuntudevGPUError
- ImageMagick使用for java(im4java)Java