Oberon Community Platform Forum
November 19, 2019, 06:01:26 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Fonts in the Oberon subsystem  (Read 4245 times)
peasthope
Full Member
***
Posts: 100


WWW
« on: October 30, 2013, 10:20:48 PM »

A session in the Oberon subsystem leaves this information in the parent terminal.
  ...
Autostart: executing Oberon.Call System.Init Oberon ~
{P cpuid= 0, pid= 54 ETH Oberon / LinuxAos (rev.5406)}
Missing: Courier10.Scn.Fnt
Missing: Courier8.Scn.Fnt
Missing: Oberon10.Md6.Fnt
{P cpuid= 0, pid= 55 Oberon started}
Missing: Oberon12b.Md6.Fnt
Missing: Oberon12.Md6.Fnt
Missing: Courier10.Md6.Fnt
  ...

What is involved in adding or installing those fonts?

Thanks,                ... Peter E.

Logged
fld
Newbie
*
Posts: 15


« Reply #1 on: October 31, 2013, 02:46:17 PM »

Hi Peter

In revision 5165 of UnixAos most Oberon screen fonts got replaced
by TrueType fonts for better scalability. If you need the old screen fonts
nonetheless you can copy them over from an earlier release or from
the ETH repository.

BTW. You use the old procedure to start the Oberon subsystem which
contains a race condition. In the A2 menu
     Oberon.Call System.Init Oberon ~
got replaced by
Logged
peasthope
Full Member
***
Posts: 100


WWW
« Reply #2 on: November 01, 2013, 05:27:12 PM »

Quote
got replaced by
  [Oberon.Start Oberon 0x0 ~]

OK, thanks.  In Configuration.XML, Autostart section, I replaced

Code:
... OberonDisplay.Install ...
... Oberon.Call System.Init Oberon ~
with
Code:
<Setting name="Start an Oberon process" value="Oberon.Start Oberon 1260x820 0 12 ~"/>

On this system that leaves the A2 menu exposed.

Quote
In revision 5165 of UnixAos most Oberon screen fonts got replaced
by TrueType fonts for better scalability. If you need the old screen fonts ...

I'll happily use TTF and this confirms that Courier is available.
Quote
peter@dalton:/usr/aos/fonts$ ls Cour*
Courier_bd.ttf  Courier_bi.ttf  Courier_i.ttf  Courier.ttf

/usr/aos/system/OType.Text explains OTFonts.Make to build fonts for later use and OTFonts.Install to build on demand.  

Quote
OTFonts.Make /usr/aos/fonts/Courier.ttf Courier 8 10 Scn Pr3 ~
made four fonts in the working directory which I copied to /usr/aos/fonts/.

Quote
peter@dalton:/usr/aos/fonts$ ls -l Cour*
-rw-r--r-- 1 root root   9653 Nov  1 08:12 Courier10.Pr3.Fnt
-rw-r--r-- 1 root root   2377 Nov  1 08:12 Courier10.Scn.Fnt
-rw-r--r-- 1 root root   6655 Nov  1 08:12 Courier8.Pr3.Fnt
-rw-r--r-- 1 root root   2100 Nov  1 08:12 Courier8.Scn.Fnt
-rw-r--r-- 1 root bin  311508 Feb 15  2013 Courier_bd.ttf
-rw-r--r-- 1 root bin  234788 Feb 15  2013 Courier_bi.ttf
-rw-r--r-- 1 root bin  244156 Feb 15  2013 Courier_i.ttf
-rw-r--r-- 1 root bin  302688 Feb 15  2013 Courier.ttf

Then "Script.ChangeFont /usr/aos/fonts/Courier8" works as does "Script.ChangeFont Courier8" in ETHNO.  As suggested in documentation, this text is rougher than text from a primary bitmap font.

I've also put OTFonts.Install in Oberon.Text, InitCommands to try dynamic font building.  Neither "Script.ChangeFont Courier12" nor "Script.ChangeFont Courier12.Scn.Fnt" works.  Will set it aside until another idea turns up.

Thanks for your work and help,              ... Peter E.

« Last Edit: November 01, 2013, 05:30:29 PM by peasthope » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!