Read-only archive of the All About Symbian forum (2001–2013) · About this archive

BOLD Font in S60 not working...for me!

11 replies · 3,816 views · Started 09 May 2003

I have trrouble displaying bold text in the S60 device. Everything works on the emulator but not on the S60. I have noticed that Ewan uses Bold in Vexed. How is this possible. Whenever I use gSTYLE or STYLE with no luck. Do I have to load a font with gLOADFONT ? Whats the command line and which is the Font name? Or even better.....Ewan how did you manage bold font in Vexed ? 😃

Not telling :P

Oh alright then - you need to change the gFONTs - the fonts are all different in the S60 runtime - you need to use a different font to get bold.

I'll dig out code this afternoon and post here, and try to remember to send Event Core - coz that shows you how to do it as well!

(BTW you fooling arond or working on an app GD?)

Working on an App. I could post some screenshots but it seems that the Opl runtime without a wrapper application (*ahem*) doesnt allow screenshots 😃 I only get an empty screeen with the OPL pane for some reason.

The application is like 50% ready. It will go opensource when I manage to get a respectable version.

[quote="MaleBuffy"]Everything works on the emulator but not on the S60. [/quote]

Hi MaleBuffy!

Seems like you have a working Series 60 OPL SDK!? Could you please describe your working installation?

I have troubles to get the OPL SDK working with the Serie 60 Emulator. Here is what I did:
I installed a Nokia Series 60 SDK for Symbian OS Version 1.0 on my Windows 98 PC, checked that EPOCROOT is set correct, copied the content of Series60-OPL-DevPack over this installation and checked that all files are in the right folder. Then I copied a WINS Version of FExplorer, which Dominique Hugo sent me upon request (Thanx!), onto the installation. To check if OPL now works on my 'PC Series 60' I installed Vexed and copied a 'hello series 60' OPO-File created with a 9200 Emulator to the Series 60 Emulator. In FExplorer I searched for '*.opo' and received the expected files. But when I try to run them, there is always only a short 'flashing up' of a titlebar named 'OPL' and then the
error message: 'Opl: system error!'. The same error occurs if I use an OPO file generated with the 9200 OPL SDK or the Series 60 opltran...

Any suggestions?

Thanx Martin

Unfortunately I dont use the Sereis 60 emulator yet. I use the 9200 SDK and write my code on the emulator itself. I dont even use OPLTRAN. What I do is code on the 9200 SDK...translate and then copy the .opo to the S60 device and test it there. Its just easier for me this way!

Well its not easy to code for an Alpha runtime with an Alpha SDK. Its just not smart! I prefer the tried and tested 9200 SDk for OPL. Ah yes...did you dig out the code for the bold font in S60? Thanx! 😃

WANTED in ASCII or UNICODE
-------------------------------------

If you have seen this Font and
know how to find it and bring it
to the screen with OPL in S60
please ring FontStoppers at this
forum.

😃 😃 😃 😃 😃 😃 😃 😃 😃 😃 😃

[code:1]
gFONT 10 : gSTYLE 1 :
gAT 75,13
gPRINT "-=WarLocks=- Presents..."
gFONT 12 : gSTYLE 1 : gAT 150,30
gPRINT K_App_Name$
gFONT 10 : gSTYLE 1 : gAT 150,55
gPRINT "Version "+K_App_Ver$
gFONT 10 : gSTYLE 1 : gAT 150,65
gPRINT " � "+K_Author_Name$
[/code:1]
Playing around with the gFont value and the gStyle value might do it? 😊

Thanx Dazler but this doesnt work. I get an Font Not Loaded error message! The gFont vale must be over 268xx..... something! I tried to play with the gfont id& where id& was in a loop from 1 to 20000 but still nothing!

Drop these in the start of your code...

[code:1]
CONST KOplFontLatinPlain12&=&10000001
CONST KOplFontLatinBold12&=&10000002
CONST KOplFontLatinBold13&=&10000003
CONST KOplFontLatinBold17&=&10000004
CONST KOplFontLatinBold19&=&10000005
CONST KOplFontNumberPlain5&=&10000006
CONST KOplFontClockBold30&=&10000007
CONST KOplFontLatinClock14&=&10000008
CONST KOplFontCustom&=&10000009
REM BAD! CONST KOplFontPlain12&=&1000000a
REM BAD! CONST KOplFontPlain16&=&1000000b
CONST KOplFontApacPlain12&=&1000000c
CONST KOplFontApacPlain16&=&1000000d
REM Not available CONST KOplFontBold18&=&1000000e
REM Not available CONST KOplFontBold24&=&1000000f
[/code:1]

Normal Font ... gFONT &10000001
Bold Font... gFONT &10000002

Thanx Ewan, I would have never figured this out by myself! I hope this will be included in a future documentation.