Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.acorn.programmer > #5752

Re: Font problem

Subject Re: Font problem
Newsgroups comp.sys.acorn.programmer
From Alan Adams <alan@adamshome.org.uk>
Date 2019-05-14 11:57 +0100
Message-ID <3896ffb357.Alan.Adams@ArmX6.adamshome.org.uk> (permalink)
References <003219b257.Alan.Adams@ArmX6.adamshome.org.uk> <57b27c5a25Paul@sprie.nl> <e52928b357.Alan.Adams@ArmX6.adamshome.org.uk> <mpro.prgel000idcos0ogk.spamtrap@mw-software.com>
Organization Orpheus Internet Services

Show all headers | View raw


In message <mpro.prgel000idcos0ogk.spamtrap@mw-software.com>
          Martin Wuerthner <spamtrap@mw-software.com> wrote:

> Alan Adams <alan@adamshome.org.uk> wrote:

>> I still want to know what mechanism could cause the desktop font to revert
>> to the system font. Is it, for example, a pointer in shared memory which
>> could be corrupted?

> No, that would be very unlikely. From what I have observed when using fonts
> in icons the Wimp has a rather conservative approach to error handling in
> this area: If anything goes wrong at any point with a font used in a window,
> it switches everything back to the system font. So, the most likely cause is
> that something is wrong with the icon definitions in your window. For
> instance, when you copy the icon are you certain that you handle its
> indirect data and validation string pointers correctly?

I checked the template for the window concerned. The icon I was copying 
had a font specified of system.fixed. I changed it to corpus.medium, and 
the problem seems to have gone away.

In case I wasn't clear before, the windows of the application causing the 
problem displayed with the correct fonts even after the problem showed up. 
Everything that used the desktop font switched to the system font, i.e. 
other applicatrion windows, and the labels on the icon bar.

Is there something odd about system.fixed I wonder - I can't see why as 
it's just another font? The replacement has a longer name, so it's 
unlikely to be a buffer issue.

-- 
Alan Adams, from Northamptonshire
alan@adamshome.org.uk
http://www.nckc.org.uk/

Back to comp.sys.acorn.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Font problem Alan Adams <alan@adamshome.org.uk> - 2019-05-10 19:25 +0100
  Re: Font problem Alan Adams <alan@adamshome.org.uk> - 2019-05-10 19:35 +0100
    Re: Font problem Alan Adams <alan@adamshome.org.uk> - 2019-05-10 20:19 +0100
  Re: Font problem Matthew Phillips <spam2011m@yahoo.co.uk> - 2019-05-10 21:21 +0100
  Re: Font problem Harriet Bazley <harriet@bazleyfamily.co.uk> - 2019-05-11 01:20 +0100
  Re: Font problem Paul Sprangers <Paul@sprie.nl> - 2019-05-11 14:28 +0200
    Re: Font problem Alan Adams <alan@adamshome.org.uk> - 2019-05-12 20:44 +0100
      Re: Font problem Martin Wuerthner <spamtrap@mw-software.com> - 2019-05-13 19:43 +0200
        Re: Font problem Alan Adams <alan@adamshome.org.uk> - 2019-05-13 21:54 +0100
        Re: Font problem Alan Adams <alan@adamshome.org.uk> - 2019-05-14 11:57 +0100
      Re: Font problem jgh@mdfs.net - 2019-05-14 21:10 -0700
        Re: Font problem Alan Adams <alan@adamshome.org.uk> - 2019-05-15 10:11 +0100

csiph-web