Crystal Space
Welcome, Guest. Please login or register.
September 20, 2014, 11:22:49 am

Login with username, password and session length
Search:     Advanced search
9018 Posts in 2051 Topics by 8488 Members
Latest Member: Joanarosales
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  General Crystal Space Discussion
| | |-+  some problem about load custom font
« previous next »
Pages: [1] Print
Author Topic: some problem about load custom font  (Read 3980 times)
arcus
Newbie
*
Posts: 4


View Profile Email
« on: July 18, 2005, 10:13:09 am »

hi, all
I'm using a custom font which include Chinese character, and I follow the step of CS document(I'm using the windows 2000.)
First, I seach the WiNNT to load an Chinese font(*.ttf), and then using the csfgen.exe to convert this ttf font to csf format, but I always get the answer of:
Could not open fontfile simhei.ttf!
Cannot load font file simhei.ttf
Does anybody meet this problem before?

Any help and suggestion will be welcome!

Frank

Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #1 on: July 18, 2005, 10:21:33 am »

hi, all
I'm using a custom font which include Chinese character, and I follow the step of CS document(I'm using the windows 2000.)
First, I seach the WiNNT to load an Chinese font(*.ttf), and then using the csfgen.exe to convert this ttf font to csf format, but I always get the answer of:
Could not open fontfile simhei.ttf!
Cannot load font file simhei.ttf
Does anybody meet this problem before?

Any help and suggestion will be welcome!

Frank



Can you show us the code that you use to load the font?

Greetings,
Logged
arcus
Newbie
*
Posts: 4


View Profile Email
« Reply #2 on: July 18, 2005, 11:39:07 am »

I use this command line to run:
D:\cvsroot\CS>csfgen simhei.ttf
Could not open fontfile simhei.ttf!
Cannot load font file simhei.ttf
and I also copy some other english ttf font from winnt folder, it also show that result.

frank
Logged
jorrit
Administrator
Hero Member
*****
Posts: 1706


View Profile
« Reply #3 on: July 18, 2005, 11:45:50 am »

I use this command line to run:
D:\cvsroot\CS>csfgen simhei.ttf
Could not open fontfile simhei.ttf!
Cannot load font file simhei.ttf
and I also copy some other english ttf font from winnt folder, it also show that result.

frank

You need a VFS path like this:

csfgen /this/simhei.ttf

Greetings,
Logged
anastas
Guest


Email
« Reply #4 on: August 11, 2005, 06:30:51 am »

I once had a problem because I uploaded the font using my ftp program which did not upload it as Raw data and messed up the font. Try to upload using raw data upload.
Logged
res
Develazyoper
CS Developer
Full Member
*****
Posts: 206


View Profile Email
« Reply #5 on: August 15, 2005, 03:13:19 pm »

using the csfgen.exe to convert this ttf font to csf format, but I always get the answer of:

If you can, it's better to use a TrueType font directly.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 4.233 seconds with 15 queries.