Skip to content

Error: Aborting: no font found #31

@chrisdane

Description

@chrisdane

Hi

/albedo/soft/sw/ushow/0.1.3/bin/ushow -m $griddes sst.fesom.200101.01.nc
=== ushow: Unstructured Data Viewer ===

Data file: sst.fesom.200101.01.nc
Mesh file: /albedo/work/projects/p_pool_recom/meshes/fesom2/core2/core2_griddes_nodes.nc
Resolution: 1.00 degrees
Influence radius: 80000 m

Opening data file(s)...
Loading mesh...
Coordinate info: lon 1D [126858], lat 1D [126858]
Detected: 1D unstructured coordinates (126858 points)
Creating regrid structure...
Creating regrid: 360 x 180 target grid (64800 points)
Influence radius: 80000 m (chord: 0.012557)
Building KDTree from 126858 source points...
Computing nearest neighbors for 64800 target points...
  Progress: 30/180 rows (16.7%)
  Progress: 60/180 rows (33.3%)
  Progress: 90/180 rows (50.0%)
  Progress: 120/180 rows (66.7%)
  Progress: 150/180 rows (83.3%)
  Progress: 180/180 rows (100.0%)
Regrid created: 45899/64800 valid target points (70.8%)
Scanning for variables...
Found variable: sst [time=1, nod2=126858] (time=0) (node=1)
Found 1 displayable variables
Initializing display...
Warning: Cannot convert string "-misc-fixed-bold-r-normal--15-140-75-75-c-90-iso10646-1" to type FontStruct
Warning: Unable to load any usable ISO8859 font
Warning: Unable to load any usable ISO8859 font
Error: Aborting: no font found

I had the same error with ncview: on my local computer, ncview's fallback font helvetica

ncview-2.1.11/src/interface/fallback_resources.h
static String fallback_resources[] = {
	"Ncview*font:			-*-helvetica-*-r-*-*-14-*-*-*-*-*-*-*",

is not installed (helvetica is a closed source font). The solution is to set some generic font via

cat ~/my/path/Ncview
Ncview*font: fixed

and

export XAPPLRESDIR="$(readlink -f ~/my/path)" # relative path not allowed

Maybe that's a similar issue here?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions