EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: edm questions
From: Bruce Hill <[email protected]>
To: [email protected]
Date: Wed, 26 Nov 2014 14:01:22 -0800
Hi Mark,
This sounds like a font problem.    I'm on vacation today
and need to get back to some furniture moving, but I'm attaching
a copy of our fonts.list and colors.list files so you have some
more examples to work from.    The colors are probably fine
with the default, but fonts can be tricky depending on your
linux distribution.    The attached ones work for us from RHEL5,
RHEL6, and from windows systems.

Edm widget layouts assume a standard dpi, so you should use
either 75dpi or 100dpi fonts exclusively in your fonts.list file.
I think the default is 75dpi, which is what we're using.

You should install xorg-x11-fonts-75dpi, or the xorg-x11-fonts-100dpi
depending on which way you go.   You should also install xorg-x11-fonts-misc
and xorg-x11-fonts-truetype as well.

If you're still having trouble, post a copy of your fonts.list file and
any console error msgs and I'll take a look later.

Cheers,
- Bruce

On 11/26/2014 1:25 PM, Mark Rivers wrote:

Folks,

 

I am new to edm and am having problems with fonts or colors or something.

 

The problem is that all of the buttons in the edm display appear to be lacking labels and the text entry widgets have no text.  I have attached a screen shot of the edm display showing the problem.

 

Is this due to the font errors, or a color problem, or something else?

 

When I run an edm display from Diamond Light Source I get the following errors repeating from edm in a message window:

 

Cannot find font: [arial-bold-r-10.0]

  Using default window font: [arial-bold-r-12.0]

Cannot find default window font: [arial-bold-r-12.0]

  Using default site font: [helvetica-medium-r-10.0]

 

It appears that it did find my default site font, helvetica-medium-r-10.0.

 

Here are the arial fonts on my system:

 

corvette:aravisGigEApp/op/edl>xlsfonts | grep arial

--arial-bold-i---0-0-0-0-p-0-iso8859-1

--arial-bold-i---0-0-0-0-p-0-iso8859-1

--arial-bold-r---0-0-0-0-p-0-iso8859-1

--arial-bold-r---0-0-0-0-p-0-iso8859-1

--arial-medium-i---0-0-0-0-p-0-iso8859-1

--arial-medium-i---0-0-0-0-p-0-iso8859-1

--arial-medium-r---0-0-0-0-p-0-iso8859-1

--arial-medium-r---0-0-0-0-p-0-iso8859-1

-monotype-arial-bold-i-normal--0-0-0-0-p-0-iso8859-1

-monotype-arial-bold-i-normal--0-0-100-100-p-0-iso8859-1

-monotype-arial-bold-i-normal--0-0-75-75-p-0-iso8859-1

-monotype-arial-bold-r-normal--0-0-0-0-p-0-iso8859-1

-monotype-arial-bold-r-normal--0-0-100-100-p-0-iso8859-1

-monotype-arial-bold-r-normal--0-0-75-75-p-0-iso8859-1

-monotype-arial-medium-i-normal--0-0-0-0-p-0-iso8859-1

-monotype-arial-medium-i-normal--0-0-100-100-p-0-iso8859-1

-monotype-arial-medium-i-normal--0-0-75-75-p-0-iso8859-1

-monotype-arial-medium-r-normal--0-0-0-0-p-0-iso8859-1

-monotype-arial-medium-r-normal--0-0-100-100-p-0-iso8859-1

-monotype-arial-medium-r-normal--0-0-75-75-p-0-iso8859-1

 

I added those fonts to my fonts.list, but I still get the same errors.

 

Thanks,

Mark

 

 


--

Bruce Hill

Member Technical Staff

SLAC National Accelerator Lab

2575 Sand Hill Road M/S 10

Menlo Park, CA 94025

4 0 0

blinkms=750
max=0x10000
columns=5

alias trace0 red-21
alias trace1 blue-26
alias trace2 cyan-31
alias trace3 yellow-36
alias trace4 orange-41
alias trace5 Exit/Quit/Kill
alias trace6 "COOL title"
alias trace7 "CRYO title"
alias trace8 "RF title"
alias trace9 "UNSS title"

static 0   "White-Disconn-0"  { 65535 65535 65535 }    #0 white
static 1   "grey-1"           { 60652 60652 60652 }    #
static 2   "grey-2"           { 56026 56026 56026 }    #
static 3   "GLOBAL canvas"    { 51400 51400 51400 }    #
static 4   "grey-4"           { 48059 48059 48059 }    #
static 5   "Control-bkgd"     { 44718 44718 44718 }    #5
static 6   "GLOBAL title"     { 40606 40606 40606 }    #
static 7   "grey-7"           { 37265 37265 37265 }    #
static 8   "grey-8"           { 34181 34181 34181 }    #
static 9   "GLOBAL help"      { 30840 30840 30840 }    #
static 10  "Wid-bg/Anno-pri"  { 26985 26985 26985 }    #10
static 11  "grey-11"          { 23130 23130 23130 }    #
static 12  "Monitor-bkgd"     { 17990 17990 17990 }    #
static 13  "grey-13"          { 11565 11565 11565 }    #
static 14  "black-14"         {     0     0     0 }    #
static 15  "Monitor: NORMAL"  {     0 65535     0 }    #15 green
static 16  "green-16"         {     0 57568     0 }    #
static 17  "Monitor: alt"     {     0 49344     0 }    #
static 18  "green-18"         {     0 41120     0 }    #
static 19  "green-19"         {     0 32896     0 }    #
static 20  "Monitor: MAJOR"   { 65535     0     0 }    #20 red
static 21  "red-21"           { 57568     0     0 }    #
static 22  "Mon: MAJOR/unack" { 49344     0     0 }    #
static 23  "red-23"           { 41120     0     0 }    #
static 24  "red-24"           { 32896     0     0 }    #
static 25  "Controller"       {     0     0 65535 }    #25 blue
static 26  "blue-26"          {     0     0 57568 }    #
static 27  "blue-27"          {     0     0 49344 }    #
static 28  "blue-28"          {     0     0 41120 }    #
static 29  "blue-29"          {     0     0 32896 }    #
static 30  "Controller/alt"   {     0 65535 65535 }    #30 cyan
static 31  "cyan-31"          {     0 57568 57568 }    #
static 32  "cyan-32"          {     0 49344 49344 }    #
static 33  "cyan-33"          {     0 41120 41120 }    #
static 34  "cyan-34"          {     0 32896 32896 }    #
static 35  "Monitor: MINOR"   { 65535 65535     0 }    #35 yellow
static 36  "yellow-36"        { 57568 57568     0 }    #
static 37  "Mon: MINOR/unack" { 49344 49344     0 }    #
static 38  "yellow-38"        { 41120 41120     0 }    #
static 39  "yellow-39"        { 32896 32896     0 }    #
static 40  "Shell/reldsp-alt" { 65535 45232 24672 }    #40 orange
static 41  "orange-41"        { 57568 39578 21588 }    #
static 42  "orange-42"        { 49344 33924 18504 }    #
static 43  "brown-43"         { 41120 28270 15420 }    #
static 44  "Related display"  { 32896 22616 12336 }    # brown
static 45  "Invalid-45"       { 65535     0 65535 }    #45 purple
static 46  "Exit/Quit/Kill"   { 49344     0 49344 }    #46 purple
static 47  "purple-47"        { 32896     0 32896 }    #
static 48  "Light Blocked"    { 26985 26985 26985 }    # dark gray
static 49  "Ready for Light"  { 18000 18000 65535 }    # Light Blue
static 50  "LINAC canvas"     { 52736 56320 52480 }    #50
static 51  "LINAC title"      { 47360 50688 47104 }    #
static 52  "LINAC help"       { 42496 45568 42240 }    #
static 53  "VAC title"        { 57600 63488 45312 }    #
static 54  "VAC help"         { 51712 57088 40704 }    #
static 55  "FE canvas"        { 62708 56026 43176 }    #55
static 56  "FE title"         { 47031 42148 32382 }    #
static 57  "FE help"          { 31354 28013 21588 }    #
static 58  "COOL title"       { 46336 63744 55040 }    #
static 59  "COOL help"        { 41472 57344 49408 }    #
static 60  "RING canvas"      { 49664 55808 55552 }    #60
static 61  "RING title"       { 44544 50176 49920 }    #
static 62  "RING help"        { 39936 45056 44800 }    #
static 63  "CRYO title"       { 45056 55808 63744 }    #
static 64  "CRYO help"        { 40448 50176 57344 }    #
static 65  "TARGET canvas"    { 52480 51712 56576 }    #65
static 66  "TARGET title"     { 47104 46336 50688 }    #
static 67  "TARGET help"      { 42240 41472 45568 }    #
static 68  "RF title"         { 56832 50176 64256 }    #
static 69  "RF help"          { 50944 45045 57600 }    #
static 70  "CF canvas"        { 56576 51712 56576 }    #70
static 71  "CF title"         { 50688 46336 50688 }    #
static 72  "CF help"          { 45568 41472 45568 }    #
static 73  "UNSS title"       { 64256 60176 60416 }    #
static 74  "UNSS help"        { 57600 45056 54272 }    #
static 75  "UNMS canvas"      { 65535 38550 43176 }    #75
static 76  "UNMS title"       { 49344 29041 32382 }    #
static 77  "UNMS help"        { 32896 19275 21588 65535 0 0 }    #
static 78  "Light Possible"   {     0 65535 65535 }    # cyan
static 79  "79"               {     0     0     0 65000 65000 65000 }    #
static 80  "invisible"        {     0     0     0 }    #

rule 81  test1 {
 >=20        : Exit/Quit/Kill
 >=0 && <10  : "UNMS help"
 >=10 && <20 : invisible
 default     : blue-26
}

rule 82  test1Inv {
 >=40 && <45 : 79
 >=45 && <47 : blue-26
}

static 83  "MEC gold-83"      { 65535 55800 17152 }    # MEC Gold
static 84  "XCS purple-84"    { 36350  3328 65535 }    # XCS Purple
static 85  "SXR silver-85"    { 52785 48896 47872 }    # SXR Silver
static 86  "86"               {     0     0     0 }    # spare
static 87  "87"               {     0     0     0 }    # spare

rule 88 LightPath {
 <=0 : "Light Blocked"
 >0 && <2 : "Ready for Light"
 >=2 : "Light Possible"
}

rule 89 hutchColors {
 <=0 : "GLOBAL canvas"
 =1  : "AMO blue-90"
 =2  : "SXR silver-85"
 =3  : "XPP green-91"
 =4  : "XCS purple-84"
 =5  : "CXI red-92"
 =6  : "MEC gold-83"
 >=7 : "UNMS help"
}

static 90  "AMO blue-90"      { 18000 18000 65535 }    # AMO Blue
static 91  "XPP green-91"     {     0 49344     0 }    # XPP Green
static 92  "CXI red-92"       { 65535     0     0 }    # CXI red

menumap { 
 test1
 test1Inv
 "LightPath"
 "White-Disconn-0"
 "Wid-bg/Anno-pri"
 "Control-bkgd"
 "Monitor: MAJOR"
 "Mon: MAJOR/unack"
 "Monitor: MINOR"
 "Mon: MINOR/unack"
 "Monitor: NORMAL"
 "Monitor: alt"
 "Controller"
 "Controller/alt"
 "Related display"
 "Shell/reldsp-alt"
 "Invalid-45"
 "GLOBAL canvas"
 "GLOBAL title"
 "GLOBAL help"
 "FE canvas"
 "FE title"
 "FE help"
 "LINAC canvas"
 "LINAC title"
 "LINAC help"
 "RING canvas"
 "RING title"
 "RING help"
 "TARGET canvas"
 "TARGET title"
 "TARGET help"
 "CF canvas"
 "CF title"
 "CF help"
 "UNMS canvas"
 "UNMS title"
 "UNMS help"
 "VAC title"
 "VAC help"
 "COOL title"
 "COOL help"
 "CRYO title"
 "CRYO help"
 "RF title"
 "RF help"
 "UNSS title"
 "UNSS help"
 "grey-1"
 "grey-2"
 "grey-4"
 "grey-7"
 "grey-8"
 "grey-11"
 "Monitor-bkgd"
 "grey-13"
 "black-14"
 "green-16"
 "green-18"
 "green-19"
 "red-21"
 "red-23"
 "red-24"
 "blue-26"
 "blue-27"
 "blue-28"
 "blue-29"
 "cyan-31"
 "cyan-32"
 "cyan-33"
 "cyan-34"
 "yellow-36"
 "yellow-38"
 "yellow-39"
 "orange-41"
 "orange-42"
 "brown-43"
 "Exit/Quit/Kill"
 "purple-47"
 "Light Blocked"
 "Ready for Light"
 "Light Possible"
 "79"
 "hutchColors"
 "AMO blue-90"
 "SXR silver-85"
 "XPP green-91"
 "XCS purple-84"
 "CXI red-92"
 "MEC gold-83"
 }

alarm { 
  disconnected : "White-Disconn-0"
  invalid      : "Invalid-45"
  minor        : "Monitor: MINOR"
  major        : "Monitor: MAJOR"
  noalarm      : *
 }
3 0 0
helvetica-medium-r-12.0
helvetica-medium-r-14.0

#
# Font spec strategy
# Generally we prefer scalable fonts, specified w/ zero point size, field 8, and zero avg width, field 12
# For example
# -adobe-helvetica-(medium,bold)-(r,o)-normal--0-(80,100,120,140,180,240)-75-75-p-0-*-*
# before the non-scalable font spec which uses a wild card
# -adobe-helvetica-(medium,bold)-(r,o)-normal--*-(80,100,120,140,180,240)-75-75-p-*-*-*
#

#
# For the newer RedHat RHEL6 machines, the available 75dpi fonts
# generally don't provide larger than 24.0 point sizes.
# Instead of just providing a generic match at the end of these font groups,
# which maps all the font sizes for that group to the generic font, I split
# these font groups, thus allowing a different font spec to be selected for the
# larger font sizes.   We rarely use these larger sizes, so defaulting to a
# generic font for them allows the screen to render while still keeping a
# good match for the smaller font sizes
#

# Helvetica sizes 8,10,12,14,18,and 24
helvetica={
-adobe-helvetica-(medium,bold)-(r,o)-normal--0-(80,100,120,140,180,240)-75-75-p-0-*-*
-adobe-helvetica-(medium,bold)-(r,o)-normal--*-(80,100,120,140,180,240)-75-75-p-*-*-*
-*-helvetica-(medium,bold)-(r,o)-normal--0-(80,100,120,140,180,240)-75-75-p-0-*-*
-*-helvetica-(medium,bold)-(r,o)-normal--*-(80,100,120,140,180,240)-75-75-p-*-*-*
-urw-urw gothic l-(medium,bold)-(r,o)-normal--0-(80,100,120,140,180,240)-75-75-p-0-*-*
-*-helvetica-(medium,bold)-(r,o)-normal--*-(80,100,120,140,180,240)-*-*-p-*-*-*
}

# Helvetica sizes 32.0, 48.0, and 72.0 may need a different font spec on some machines,
# so we create another font group w/ the same family name for them
helvetica={
-adobe-helvetica-(medium,bold)-(r,o)-normal--0-(320,480,720)-75-75-p-0-*-*
-adobe-helvetica-(medium,bold)-(r,o)-normal--*-(320,480,720)-75-75-p-*-*-*
-*-helvetica-(medium,bold)-(r,o)-normal--0-(320,480,720)-75-75-p-0-*-*
-*-helvetica-(medium,bold)-(r,o)-normal--*-(320,480,720)-75-75-p-*-*-*
-urw-urw gothic l-(medium,bold)-(r,o)-normal--0-(320,480,720)-75-75-p-0-*-*
}

utopia={
-*-utopia-(medium,bold)-(r,i)-normal--0-(80,90,100,110,120,140,180,240,320,480,720)-75-75-p-0-*-*
-*-utopia-(medium,bold)-(r,i)-normal--*-(80,90,100,110,120,140,180,240,320,480,720)-75-75-p-*-*-*
-*-utopia-(regular,bold)-(r,i)-normal--*-(80,90,100,110,120,140,180,240,320,480,720)-75-75-p-*-*-*
-urw-urw bookman l-(medium,bold)-(r,i)-normal--0-(80,90,100,110,120,140,180,240,320,480,720)-75-75-p-0-*-*
}

new century schoolbook={
-urw-century schoolbook l-(medium,bold)-(r,i)-normal--0-(80,100,120,140,180,240,320,480,720)-75-75-p-0-*-*
-*-century schoolbook l-(medium,bold)-(r,i)-normal--0-(80,100,120,140,180,240,320,480,720)-75-75-p-0-*-*
-*-new century schoolbook-(medium,bold)-(r,i)-normal--0-(80,100,120,140,180,240,320,480,720)-75-75-p-0-*-*
-*-new century schoolbook-(medium,bold)-(r,i)-normal--*-(80,100,120,140,180,240,320,480,720)-75-75-p-*-*-*
-*-*schoolbook*-(medium,bold)-(r,i)-normal--0-(80,100,120,140,180,240,320,480,720)-75-75-p-0-*-*
}

# times sizes 8,10,12,14,18,and 24
times={
-adobe-times-(medium,bold)-(r,i)-normal--0-(80,100,120,140,180,240)-75-75-p-0-*-*
-adobe-times-(medium,bold)-(r,i)-normal--*-(80,100,120,140,180,240)-75-75-p-*-*-*
-*-times-(medium,bold)-(r,i)-normal--0-(80,100,120,140,180,240)-75-75-p-0-*-*
-*-times-(medium,bold)-(r,i)-normal--*-(80,100,120,140,180,240)-75-75-p-*-*-*
-urw-urw bookman l-(medium,bold)-(r,i)-normal--0-(80,100,120,140,180,240)-75-75-p-0-*-*
-*-times-(medium,bold)-(r,i)-normal--*-(80,100,120,140,180,240)-*-*-p-*-*-*
}

# times sizes 32.0, 48.0, and 72.0 may need a different font spec on some machines,
# so we create another font group w/ the same family name for them
times={
-adobe-times-(medium,bold)-(r,i)-normal--0-(320,480,720)-75-75-p-0-*-*
-adobe-times-(medium,bold)-(r,i)-normal--*-(320,480,720)-75-75-p-*-*-*
-*-times-(medium,bold)-(r,i)-normal--0-(320,480,720)-75-75-p-0-*-*
-*-times-(medium,bold)-(r,i)-normal--*-(320,480,720)-75-75-p-*-*-*
-urw-urw bookman l-(medium,bold)-(r,i)-normal--0-(320,480,720)-75-75-p-0-*-*
-*-times-(medium,bold)-(r,i)-normal--*-(320,480,720)-*-*-p-*-*-*
}

# courier sizes 8,10,12,14,18,and 24
courier={
-adobe-courier-(medium,bold)-(r,o)-normal--0-(80,100,120,140,180,240)-75-75-m-0-*-*
-adobe-courier-(medium,bold)-(r,o)-normal--*-(80,100,120,140,180,240)-75-75-m-*-*-*
-*-courier-(medium,bold)-(r,o)-normal--0-(80,100,120,140,180,240)-75-75-*-0-*-*
-*-courier-(medium,bold)-(r,o)-normal--*-(80,100,120,140,180,240)-75-75-*-*-*-*
-bitstream-*courier*-(medium,bold)-(r,i)-normal--0-(80,100,120,140,180,240)-75-75-*-0-*-*
}

# courier sizes 32.0, 48.0, and 72.0 may need a different font spec on some machines,
# so we create another font group w/ the same family name for them
courier={
-adobe-courier-(medium,bold)-(r,o)-normal--0-(320,480,720)-75-75-m-0-*-*
-adobe-courier-(medium,bold)-(r,o)-normal--*-(320,480,720)-75-75-m-*-*-*
-*-courier-(medium,bold)-(r,o)-normal--0-(320,480,720)-75-75-*-0-*-*
-*-courier-(medium,bold)-(r,o)-normal--*-(320,480,720)-75-75-*-*-*-*
-bitstream-*courier*-(medium,bold)-(r,i)-normal--0-(320,480,720)-75-75-*-0-*-*
}


Replies:
RE: edm questions Ibrahim Saleh
RE: edm questions Linda.Pratt
References:
edm questions Mark Rivers

Navigate by Date:
Prev: edm questions Mark Rivers
Next: RE: edm questions Ibrahim Saleh
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: edm questions Mark Rivers
Next: RE: edm questions Ibrahim Saleh
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·