GDAL
November 18, 2008, 3:39pm
1
#368: g.mkfontcap: extradirs=path seems to fail
---------------------+------------------------------------------------------
Reporter: neteler | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: default | Version: svn-trunk
Keywords: fonts | Platform: Linux
Cpu: x86-64 |
---------------------+------------------------------------------------------
In Scietific Linux, I have additional TTF fonts in /usr/share/fonts/
bitstream-vera/ but they aren't picked up:
{{{
g.mkfontcap -o -s extra=/usr/share/fonts/bitstream-vera
cyrilc|Cyrillic|0|/home/neteler/binaries/grass-6.4.svn/fonts/cyrilc.hmp|0|utf-8|
gothgbt|Gothic Great Britain
triplex|0|/home/neteler/binaries/grass-6.4.svn/fonts/gothgbt.hmp|0|utf-8|
gothgrt|Gothic German
triplex|0|/home/neteler/binaries/grass-6.4.svn/fonts/gothgrt.hmp|0|utf-8|
gothitt|Gothic Italian
triplex|0|/home/neteler/binaries/grass-6.4.svn/fonts/gothitt.hmp|0|utf-8|
greekc|Greek
complex|0|/home/neteler/binaries/grass-6.4.svn/fonts/greekc.hmp|0|utf-8|
greekcs|Greek complex
script|0|/home/neteler/binaries/grass-6.4.svn/fonts/greekcs.hmp|0|utf-8|
greekp|Greek
plain|0|/home/neteler/binaries/grass-6.4.svn/fonts/greekp.hmp|0|utf-8|
greeks|Greek
simplex|0|/home/neteler/binaries/grass-6.4.svn/fonts/greeks.hmp|0|utf-8|
italicc|Italian
complex|0|/home/neteler/binaries/grass-6.4.svn/fonts/italicc.hmp|0|utf-8|
italiccs|Italian complex
small|0|/home/neteler/binaries/grass-6.4.svn/fonts/italiccs.hmp|0|utf-8|
italict|Italian
triplex|0|/home/neteler/binaries/grass-6.4.svn/fonts/italict.hmp|0|utf-8|
romanc|Roman
complex|0|/home/neteler/binaries/grass-6.4.svn/fonts/romanc.hmp|0|utf-8|
romancs|Roman complex
small|0|/home/neteler/binaries/grass-6.4.svn/fonts/romancs.hmp|0|utf-8|
romand|Roman
duplex|0|/home/neteler/binaries/grass-6.4.svn/fonts/romand.hmp|0|utf-8|
romans|Roman
simplex|0|/home/neteler/binaries/grass-6.4.svn/fonts/romans.hmp|0|utf-8|
romant|Roman
triplex|0|/home/neteler/binaries/grass-6.4.svn/fonts/romant.hmp|0|utf-8|
scriptc|Script
complex|0|/home/neteler/binaries/grass-6.4.svn/fonts/scriptc.hmp|0|utf-8|
scripts|Script
simplex|0|/home/neteler/binaries/grass-6.4.svn/fonts/scripts.hmp|0|utf-8|
ls /usr/share/fonts/bitstream-vera/
VeraBd.ttf VeraBI.ttf VeraIt.ttf VeraMoBd.ttf VeraMoBI.ttf
VeraMoIt.ttf VeraMono.ttf VeraSeBd.ttf VeraSe.ttf Vera.ttf
rpm -qa | grep -i freety
freetype-2.2.1-20.el5_2.i386
freetype-devel-2.2.1-20.el5_2.i386
freetype-2.2.1-20.el5_2.x86_64
freetype-devel-2.2.1-20.el5_2.x86_64
uname -a
Linux fep.cealp.local 2.6.18-92.1.6.el5 #1 SMP Wed Jun 25 12:38:37 EDT
2008 x86_64 x86_64 x86_64 GNU/Linux
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/368> ;
GRASS GIS <http://grass.osgeo.org >
GDAL
November 18, 2008, 6:08pm
2
#368: g.mkfontcap: extradirs=path seems to fail
----------------------+-----------------------------------------------------
Reporter: neteler | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: | Keywords: fonts
Platform: Linux | Cpu: x86-64
----------------------+-----------------------------------------------------
Comment (by glynn):
Replying to [ticket:368 neteler]:
> In Scietific Linux, I have additional TTF fonts in /usr/share/fonts/
bitstream-vera/ but they aren't picked up:
> g.mkfontcap -o -s extra=/usr/share/fonts/bitstream-vera
[snip]
Is that the entire output from g.mkfontcap? Because I only see stroke
fonts there, which leads me to wonder whether g.mkfontcap (or GRASS
generally) was built without FreeType support.
Try {{{ ldd `which g.mkfontcap` }}}. Does it have a dependency upon
libfreetype?
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/368#comment:1> ;
GRASS GIS <http://grass.osgeo.org >
GDAL
November 18, 2008, 8:49pm
3
#368: g.mkfontcap: extradirs=path seems to fail
----------------------+-----------------------------------------------------
Reporter: neteler | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: | Keywords: fonts
Platform: Linux | Cpu: x86-64
----------------------+-----------------------------------------------------
Comment (by neteler):
Aarg, GRASS was built on that machine with --with-freetype=no , so no
surprise any more.
What about encapsulating the extradirs parameter with
#ifdef HAVE_FT2BUILD_H
or to print a related warning that no !FreeType support was compiled in?
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/368#comment:2> ;
GRASS GIS <http://grass.osgeo.org >
GDAL
November 18, 2008, 10:45pm
4
#368: g.mkfontcap: extradirs=path seems to fail
----------------------+-----------------------------------------------------
Reporter: neteler | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: | Keywords: fonts
Platform: Linux | Cpu: x86-64
----------------------+-----------------------------------------------------
Comment (by glynn):
Replying to [comment:2 neteler]:
> What about encapsulating the extradirs parameter with
>
> #ifdef HAVE_FT2BUILD_H
One problem with conditional options is that the online manual should
ideally document all options, not just those which work in the specific
build of GRASS used to generate the documentation.
> or to print a related warning that no !FreeType support was compiled in?
A warning would probably be appropriate here.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/368#comment:3> ;
GRASS GIS <http://grass.osgeo.org >
GDAL
November 19, 2008, 9:55am
5
#368: g.mkfontcap: extradirs=path seems to fail
----------------------+-----------------------------------------------------
Reporter: neteler | Owner: grass-dev@lists.osgeo.org
Type: defect | Status: closed
Priority: major | Milestone: 6.4.0
Component: default | Version: svn-trunk
Resolution: fixed | Keywords: fonts
Platform: Linux | Cpu: x86-64
----------------------+-----------------------------------------------------
Changes (by neteler):
* status: new => closed
* resolution: => fixed
Comment:
I have added the warning in r34387 and r34388.
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/368#comment:4> ;
GRASS GIS <http://grass.osgeo.org >