在ubuntu中,默认安装GNUStep后,GUI程序运行不能,如ProjectCenter,Gorm等。
通过命令行运行发现跟缺少字体设置有关。
今天在github找到了解决答案:
https://github.com/michaelwisely/GNUstep-Sudoku
以下引用原作者的决绝方法:
Sudoku! is a simple sudoku game written in Objective-C using the GNUStep
libraries.
If you are using the libgnustep-art gui back and are getting errors
like these...
2010-12-29 13:26:34.672 Gorm[3580] The font specified for NSFont, FreeSans, can't be found.
2010-12-29 13:26:34.672 Gorm[3580] Font not found FreeSans
2010-12-29 13:26:34.672 Gorm[3580] Font not found Helvetica
2010-12-29 13:26:34.672 Gorm[3580] Font not found Helvetica
2010-12-29 13:26:34.672 Gorm[3580] Font not found Courier
2010-12-29 13:26:34.672 Gorm[3580] Font not found Fixed
2010-12-29 13:26:34.672 Gorm[3580] Font not found FreeSans
2010-12-29 13:26:34.672 Gorm[3580] The font specified ...
you have to create some .nfonts for GNUstep. In the ubuntu software repos,
there's a tool named mknfonts.tool which reads .ttf font files (among others)
and turns them into .nfont files. To make your .nfonts, do something like...
## Make the fonts and leave them in the Fonts directory
cd /usr/share/GNUstep/Fonts
mknfonts /usr/share/fonts/truetype/freefont/*
## Set the defaults for NSFont to something other than Helvetica
defaults write NSGlobalDomain NSFont <font name>
Since FreeSans was one of the fonts mknfonts generated on my system, I ran...
defaults write NSGlobalDomain NSFont FreeSans
简而言之:
1.安装mknfonts.tool
sudo apt-get install mknfonts.tool
2.cd /usr/share/GNUstep/Fonts
sudo mknfonts /usr/share/fonts/truetype/freefont/*
3. defaults write NSGlobalDomain NSFont FreeSans
4.OK
- 大小: 44.5 KB
分享到:
相关推荐
libs-gui:GNUstep gui库是完全用Objective-C语言编写的图形用户界面类的库; 这些类基于Apple的Cocoa框架(来自OpenStep规范)。 ***较大的补丁程序需要将版权分配给FSF。 请在此处提交错误。 ***
GNUstep GUI 會自行處理與 Back 相關的功能, 程式開發者只要使用 GUI 程式庫, 便可適用於各種後端上, 完全不用考慮平台問題. 目前 GNU GCC 3.x 支援 Objective-C 語言, GNUstep 則提供 GNUstep Make 來簡化編譯 ...
GNUstep Objective C iPhone Apple GNUstep Objective C iPhone Apple GNUstep Objective C iPhone Apple
GNUStep GUILibraryAPI Gui类库 ObjectiveC
GNUstep安装包 支持 Objective-C 语言,,其中只有system和core
一套windows下编译OC的工具,GNUstep 其实打造类似 KDE 或 GNOME 的整合式环境,只是说它用 的程式语言是 Object C , 而本身也有一套 GUI Toolkits 来开发
If you want to compile and develop your own GNUstep applications, also install the gnustep-devel package
gnustep-devel-1.4.0-setup.exe
GNUstep安装文件,总共四个文件,这是其中一个
GNUStep gnustep-msys-system-0.28.1-setup.exe object-c开发环境,window下搭建object-c开发环境。
GNUStep gnustep-devel-1.3.0-setup.exe object-c开发环境,window下搭建object-c开发环境。
gnustep-cairo-0.22.1-setup.exe 苹果开发必备
桌面套件一个 GNUstep 框架,为 GNUstep 应用程序提供某些 freedesktop 服务(例如 .dektop 文件、用户目录)。
GNUstep object-c函数学习手册 帮助你学习oc
windows苹果开发平台,适合没有虚拟化功能的电脑。
Ubuntu 环境中的 myOS 应用程序框架,使用 Objective-C,基于 GNUstep 和 Chameleon 框架。 取决于: 将 MYOS_PATH 行添加到 ~/.bash_profile,例如: export MYOS_PATH=~/develop/myos 将 myos.ubuntu....
the gnustep-msys-system package
gnustep 核心包
GNUstep Objective C iPhone Apple GNUstep Objective C iPhone Apple GNUstep Objective C iPhone Apple GNUstep Objective C iPhone Apple
GNUstep Objective C iPhone Apple GNUstep Objective C iPhone Apple