Hello Guest, Welcome to Apnea Board !
As a guest, you are limited to certain areas of the board and there are some features you can't use.
To post a message, you must create a free account using a valid email address.

or Create an Account


New Posts   Today's Posts

RPI4 font preferences not maintained between starts of OSCAR
#31
RE: RPI4 font preferences not maintained between starts of OSCAR
You would have loved developing in Apple Pascal on an Apple //e...

Compile and go to lunch!

I added a bit more debug out put, so here are the relevant bits...
Code:
00215: Debug: App font before Prefs setting QFont( "PibotoLt,12,-1,5,50,0,0,0,0,0" )
00216: Debug: validateFont found 229 installed font families
00216: Debug: "Application" Preferences font is "URW Chancery L"
00216: Debug: "Application" font set to "URW Chancery L" at size QVariant(int, 8)
00216: Debug: validateFont found 229 installed font families
00216: Debug: "Graph" Preferences font is "PibotoLt"
00216: Debug: "Graph" font set to "PibotoLt" at size QVariant(int, 10)
00216: Debug: validateFont found 229 installed font families
00216: Debug: "Title" Preferences font is "Liberation Serif"
00216: Debug: "Title" font set to "Liberation Serif" at size QVariant(int, 10)
00216: Debug: validateFont found 229 installed font families
00216: Debug: "Big" Preferences font is "PibotoLt"
00216: Debug: "Big" font set to "PibotoLt" at size QVariant(int, 35)
00216: Debug: Application font starts out as QFont( "PibotoLt,12,-1,5,50,0,0,0,0,0" )
00232: Debug: Application font set to QFont( "URW Chancery L,8,-1,5,50,0,0,0,0,0" )
00232: Debug: Application font reads back as QFont( "URW Chancery L,8,-1,5,50,0,0,0,0,0" )
00232: Debug: system font is "PibotoLt"
So we see that the QApplication::font() is indeed set to the Prefs value - and the Menu line "Filr ..." is changed - but the left panel is drawn with PibotoLt at 12 (enlarged...
Definitely weird... I think it must be in the RPi QT - or maybe a threading problem... idk

Oh - forgot to mention - an empty prfs file is filled in with the existing application font - which is the system font::geneeral - which is PibotoLt at 12 for a RPi
Apnea Board Monitors are members who help oversee the smooth functioning of the Board. They are also members of the Advisory Committee which helps shape Apnea Board's rules & policies. Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply






Donate to Apnea Board  
#32
RE: RPI4 font preferences not maintained between starts of OSCAR
I do remember those days and earlier.  At University we were lucky we had a paper tape reader...  Fortunately got to skip the card decks.  

More seriously, if the RPI4 is overclocked it's tolerable.  And significantly faster than the days of yore.  

But this is not serious hardware.  It seems the connectors, in particular the USB connectors wear easily.  My RPI4 has flakey USB contacts.  How do I know this?  Just spent that last 45 minutes trying to get the RPI4 to recognize the SD card reader.  Pretty frustrating HW.  Especially since the RPI4 I have won't boot with a powered USB3 hub, which would minimize this contact wear.  I have 2 RPI4's that won't boot with this hub, either with or without an SSD.  Pretty sure it's an RPI4 design issue.  Posting on the RPI forum shows there are others with the identical issue.  (Powered usb3 hub boot failure)
Post Reply Post Reply
#33
RE: RPI4 font preferences not maintained between starts of OSCAR
(01-15-2021, 03:29 PM)pholynyk Wrote: You would have loved developing in Apple Pascal on an Apple //e...

Compile and go to lunch!

Or the days when I was programming for an IBM 7094. I was lucky to be able to compile and run a program twice in one day.
The current version of OSCAR is 1.2.0.  We recommend upgrading from any earlier version.

Useful links
Download OSCAR
Best way to organize charts
How to attach charts to your post

Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#34
RE: RPI4 font preferences not maintained between starts of OSCAR
OK... among all the debugging I added I discovered that Daily::Load(date) was being called with the application font still set to the system font. Adding a call to setApplicationFont(); at the start fixes the problem and now everything uses the font given in Preferences.xml.

After dinner I will copy my changes back to my Debian system in a branch for further testing and cleanup before pushing to gitlab/master.
Apnea Board Monitors are members who help oversee the smooth functioning of the Board. They are also members of the Advisory Committee which helps shape Apnea Board's rules & policies. Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply






Donate to Apnea Board  
#35
RE: RPI4 font preferences not maintained between starts of OSCAR
(01-15-2021, 03:29 PM)pholyny Wrote: So we see that the QApplication::font() is indeed set to the Prefs value - and the Menu line "Filr ..." is changed - but the left panel is drawn with PibotoLt at 12 (enlarged...
Definitely weird... I think it must be in the RPi QT - or maybe a threading problem... idk

Oh - forgot to mention - an empty prfs file is filled in with the existing application font - which is the system font::geneeral - which is PibotoLt at 12 for a RPi

Now I am confused. I understood happydreams to say it is working properly with the last common.cpp update, while I think you are staying it is still not.

Not that I did anything in the last update that should have changed the way it worked. About the only difference is that I now read back the application font. Perhaps that tickles QT in just the right way?
The current version of OSCAR is 1.2.0.  We recommend upgrading from any earlier version.

Useful links
Download OSCAR
Best way to organize charts
How to attach charts to your post

Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#36
RE: RPI4 font preferences not maintained between starts of OSCAR
(01-15-2021, 06:05 PM)pholynyk Wrote: OK... among all the debugging I added I discovered that Daily::Load(date) was being called with the application font still set to the system font. Adding a call to setApplicationFont(); at the start fixes the problem and now everything uses the font given in Preferences.xml.

After dinner I will copy my changes back to my Debian system in a branch for further testing and cleanup before pushing to gitlab/master.

You may well be on to something there. There are warnings in QApplication:: setfont() not to use this when using style sheets, and style sheets are used for the graphs on the Daily page.

The fixes I was planning on testing included calling SetApplicationFont() later in the window creation process, which is in effect what you are doing.

Thanks for looking at this.
The current version of OSCAR is 1.2.0.  We recommend upgrading from any earlier version.

Useful links
Download OSCAR
Best way to organize charts
How to attach charts to your post

Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#37
RE: RPI4 font preferences not maintained between starts of OSCAR
I'll try it out whenever it is ready.  And I'll be a little more methodical, with oddball settings to see if things change as expected.  Glad to find out there really was an issue.  

Trust Phil over me...  I'm just a rank beginner at any of this.  Especially at explaining stuff, seem to be able to trip over my fingertips at the keyboard.  Was tickled I could even build OSCAR on an RPI4.
Post Reply Post Reply






Donate to Apnea Board  
#38
RE: RPI4 font preferences not maintained between starts of OSCAR
I've merged my fixes for further testing. We can prune some of the debug output before release.

It works for Debian 10 and RaspberryPi OS, and it should work for the others, which I can't test.
Apnea Board Monitors are members who help oversee the smooth functioning of the Board. They are also members of the Advisory Committee which helps shape Apnea Board's rules & policies. Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#39
RE: RPI4 font preferences not maintained between starts of OSCAR
I guess the font info will disappear as that's debug stuff.  

But did you mean to have AHI smaller than the AHI value?  
Arggh, cut & paste is mangled by the forum.  Here's a mini-screen shot.  Just learned about scrot -s.
   

Actually I like the small AHI.  Can you make the value fontsize the same as the AHI fontsize?  Will the orange bar height decrease if the value fontsize is reduced?  If so, that would be great.
Post Reply Post Reply
#40
RE: RPI4 font preferences not maintained between starts of OSCAR
Works fine on Windows 10, with the extra diagnostic on the screen. Of course, it worked fine before too.
The current version of OSCAR is 1.2.0.  We recommend upgrading from any earlier version.

Useful links
Download OSCAR
Best way to organize charts
How to attach charts to your post

Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply






Donate to Apnea Board  


Possibly Related Threads...
Thread Author Replies Views Last Post
  OSCAR profiles and preferences SevereApnea 5 121 02-20-2021, 02:56 AM
Last Post: SevereApnea
  OSCAR display font small bobsroka 2 342 12-28-2019, 10:45 PM
Last Post: bobsroka
Sad Oscar kills the Ubuntu VM it is running in [solved: bug in VirtualBox, not OSCAR] fredex 1 419 12-16-2019, 08:47 PM
Last Post: fredex
  preferences sheepless 6 354 09-13-2019, 12:22 PM
Last Post: pholynyk
  OSCAR -- Preferences -- Events and Waveform Tabs RWS0022 3 741 06-02-2019, 09:09 AM
Last Post: RWS0022
  OSCAR Preferences Window too large for screen Perchas 14 821 05-04-2019, 03:16 PM
Last Post: Dormeo
  OSCAR - Maximize Toogle option, lost menu options [resolved in OSCAR v1.0.1] Perchas 7 602 05-03-2019, 05:24 PM
Last Post: Perchas


New Posts   Today's Posts






About Apnea Board

Apnea Board is an educational web site designed to empower Sleep Apnea patients.