The underscore nuisance, a little hack.
Hi, all Using the FontEditor, I have slightely modified the Oberon??.Scn.Fnt in such a way as to make the underscore an underscore. I have renamed this set of fonts to Oberon10u.Scn.Fnt, Oberon12u.Scn.Fnt, and so on. (u stands for underscore). Intended usage is something like this: insert in the code for EditTools.open (the part which is handling Unix/Ascii files) the following two lines: Texts.SetFont(W, Fonts.This("Oberon12u.Scn.Fnt") ); <original code> Texts.SetFont(W, Fonts.Default); and you'll have in the Oberon text an underscore which is more like a real one. (That is if you need it). It is not that hard, to modify the fonts by hand, but if you want them you can get them from here www.webpark.cz/vrotaru/no/ou.zip Regards, Vasile
Thanks Vasile! Good work. See, there is cooperation in the Oberon world. *wink* I've tested your font and it works great. One thing however. There is an easier way to change the default font that doesn't require recompiling anything. In Native Oberon system variables are kept in the file "Oberon.Text". Just change the line: "DefaultFont"= Syntax10.Scn.Fnt to "DefaultFont"= Oberon10u.Scn.Fnt In Windows PlugIn Oberon this is done through IniEdit.Panel and choose "Fonts" from the iconizer. Once the change is made, and Oberon is restarted, you have "normal" underscores. Again, good work. Regards, John M. Drake --- Vasile Rotaru <vrotaru@seznam.cz> wrote:
Hi, all
Using the FontEditor, I have slightely modified the Oberon??.Scn.Fnt in such a way as to make the underscore an underscore. I have renamed this set of fonts to Oberon10u.Scn.Fnt, Oberon12u.Scn.Fnt, and so on. (u stands for underscore).
Intended usage is something like this: insert in the code for EditTools.open (the part which is handling Unix/Ascii files) the following two lines:
Texts.SetFont(W, Fonts.This("Oberon12u.Scn.Fnt") ); <original code> Texts.SetFont(W, Fonts.Default);
and you'll have in the Oberon text an underscore which is more like a real one. (That is if you need it).
It is not that hard, to modify the fonts by hand, but if you want them you can get them from here
www.webpark.cz/vrotaru/no/ou.zip
Regards, Vasile -- Oberon@inf.ethz.ch mailing list for ETH Oberon and related systems https://www.mail.inf.ethz.ch/lists/listinfo/oberon
__________________________________ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/
John, you wrote:
... There is an easier way to change the default font that doesn't require recompiling anything. In Native Oberon system variables are kept in the file "Oberon.Text". Just change the line:
"DefaultFont"= Syntax10.Scn.Fnt
to
"DefaultFont"= Oberon10u.Scn.Fnt
I guess, for this to work smoothly there must be also modified bold and italic versions of default Oberon font. And with correct names. This can be done. Besides I was assuming that there is a mapping (from ASCII to typographic signs) - (ASCII minus) -> m-dash _ (ASCII underscore) -> n-dash and that just modifiying the Oberon font will affect the way hyphenation is done. Well, looks. Now, after a bit of of trying it seems that both Script.Mod and Hyphen.Mod use - (ASCII minus) for hyphenation. So, does anyone know which is the use of "Oberon underscore"? Regards, Vasile.
Hi, all I have just updated the archive of "Oberon fonts with an underscore which looks more like a real one". Now it includes also bold & italic versions. I have also tried to make the plain version more pleasant. The names are rather silly, but there is an "Underscore.Tool" which will copy those fonts over the classic ones. (Unless you copy them to a separate partition, every new release of NO/BB will overwrite them). No printer fonts. You can get them, if you want them from here: www.webpark.cz/vrotaru/no/ou.zip Regards, Vasile.
participants (2)
-
John Drake -
Vasile Rotaru