Blender cvs build with Cmake/MSVC8-IDE can't load any fonts

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
etr9j
Posts: 0
Joined: Fri Mar 10, 2006 2:40 am

Blender cvs build with Cmake/MSVC8-IDE can't load any fonts

Post by etr9j » Sun Dec 03, 2006 6:52 pm

After adding text and selecting a font, nothing happens - no font gets loaded and it just stays at the default. I know this issue has to do with how I am building since windows builds using scons allows me to create text with any font. Anyone have any suggestions?

I've tried some different combinations of what is turned on in Cmake, but most of the time I build with everything on.

etr9j
Posts: 0
Joined: Fri Mar 10, 2006 2:40 am

Post by etr9j » Tue Dec 05, 2006 2:31 am

I've got some new ideas on this issue. Even though I have With_International turned on in Cmake, I can't load fonts in Blender. The console says:

Code: Select all

fromtype1: no FontMatrix found
which usually indicates (from previous posts) that With_International is not turned on. I am beginning to think Cmake has a small error somewhere (like a missing With_International preprocessor definition) but I can't find it. More specifically freetype has some issues (I think). For windows, it says:

SET(FREETYPE_INC ${FREETYPE}/include ${FREETYPE}/include/freetype2)

But I dont see any freetype2 folder in the source. Changing this to just freetype doesn't do anything to solve the issue. If anyone can replicate this issue I would love to know, or if you find a solution I would also love to know.

jesterKing
Site Admin
Posts: 207
Joined: Fri Oct 18, 2002 12:48 pm
Location: Finland

Post by jesterKing » Tue Dec 05, 2006 6:53 am

I think the INTERNATIONAL definition is missing for CMake, but this is talking without digging into the CMake sources.

/Nathan

etr9j
Posts: 0
Joined: Fri Mar 10, 2006 2:40 am

Post by etr9j » Wed Dec 06, 2006 12:54 am

I found out what the problem is. The issue lies in two Cmakelists.txt files.

1) The blenlib one has this:

IF(WITH_INTERNATIONAL)
ADD_DEFINITIONS(-DWITH_FREETYPE)
ENDIF(WITH_INTERNATIONAL)

but it should be:

IF(WITH_INTERNATIONAL)
ADD_DEFINITIONS(-DWITH_FREETYPE2)
ENDIF(WITH_INTERNATIONAL)

2) The blenkernel one is missing this:

IF(WITH_INTERNATIONAL)
ADD_DEFINITIONS(-DWITH_FREETYPE2)
ENDIF(WITH_INTERNATIONAL)

Post Reply