[CMake] [CMake + CPack] How to install TTF fonts?
Anatoly Shirokov
shirokov_a at mail.ru
Sat Feb 27 03:54:03 EST 2010
Hi there!
Does anybody know how to install own ttf fonts?
I have installed FontName but the following:
SET(CPACK_NSIS_CREATE_ICONS_EXTRA "
StrCpy \\\$FONT_DIR \\\$FONTS
!insertmacro InstallTTFFont \\\"$INSTDIR\\\\bin\\\\V100026_.TTF\\\"
")
throws error:
StrCpy $FONT_DIR "$FONTS" () ()
SetOutPath: "$FONT_DIR"
!insertmacro: InstallTTFFont
Push: $0
Push: $R0
Push: $R1
Push: $R2
!define: "Index"="Line694.6"
!insertmacro: GetFileNameCall
Push: $INSTDIR\bin\V100026_.TTF
Call "GetFileName"
Pop: $0
!insertmacro: end of GetFileNameCall
!define: "FontFileName"="$0"
SetOutPath: "$FONT_DIR"
IfFileExists: "$FONT_DIR\$0" ? Line694.6 :
File: "$INSTDIR\bin\V100026_.TTF" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] [/x filespec [...]] filespec [...] |
/oname=outfile one_file_only)
Error in macro InstallTTFFont on macroline 14
Error in script
"C:/Work/Test/cpack/build/_CPack_Packages/win32/NSIS/project.nsi" on
line 694 -- aborting creation process
What's wrong?
Thanks in advance,
Anatoly Shirokov.
More information about the CMake
mailing list