Anyone using custom fonts?

Login to reply to this topic.
Thu, 2004-12-02 19:42
Joined: 2004-12-01
Forum posts: 4
I need to use custom fonts for an application which displays
nice graphics and merging it with arbitrary content. This content should be
produced with a custom (non-system) font.

Has anyone tried that before or is there already any solution available?

cheers

Juergen

Fri, 2004-12-03 10:18
Joined: 2004-05-23
Forum posts: 114
Anyone using custom fonts?
If you want a new bitmap font, there is a font design utility, for example here
http://www.geocities.com/zavorine/epoc/fontutils.htm
(or google for "Symbian font utility bdf")

This is a complex process, and require UID from symbian to register font in theOS. However then I asked Symbian for UID for font they havn't answered my mail.  So I've just loaded  bitmaps for my font  and blit them into screen from TLex

Fri, 2004-12-03 15:46
Anonymous (not verified)
Forum posts: 2018
Anyone using custom fonts?
Quote from: serg3d
If you want a new bitmap font, there is a font design utility, for example here
http://www.geocities.com/zavorine/epoc/fontutils.htm
(or google for "Symbian font utility bdf")

ok. i got that tool. it works after switching back to an older version of ftntrans.
but now the question is how to use the resulting gdr file. I copied it to
epoc32\release\winsb\urel\z}system\fonts but my app does not
get the font.

Quote
This is a complex process, and require UID from symbian to register font in theOS. However then I asked Symbian for UID for font they havn't answered my mail.  So I've just loaded  bitmaps for my font  and blit them into screen from TLex

the next question would be, what folder to use on the real device.
using bitmap fonts is no real choice for. should be international ...

any hint?
Fri, 2004-12-03 22:16
Joined: 2004-05-23
Forum posts: 114
Anyone using custom fonts?
I've never tried it myself, but at  

http://www.mypsion.ru/library.php?aid=253
(in russian)

written that fonts should be copied to C:\System\Fonts\
for emulator it should be  epoc32\wins\c\system\Fonts\

Fri, 2005-01-07 04:00
Joined: 2004-12-30
Forum posts: 44
Load Custom Font In Symbian
I also had trouble with using custom font and my program only work well with Open Type font.

But you can try this way:

1- Copy custom font to system folder( for example : arial.ttf)

2-Using this function :

void  CRTxContainer::SetFontL(TInt aResourceID)
   {
       // Create font
                TInt FontSize=150;
   _LIT(FontName,"arial");
   
   
   TFontSpec* fontSpec=new TFontSpec(FontName,FontSize);
   
   CleanupStack::PushL(fontSpec);

   TCharFormat     charFormat;
   TCharFormatMask charFormatMask;
   CFont*  editorFont = iCoeEnv->CreateScreenFontL(*fontSpec);
   CleanupStack::PushL(editorFont);

   charFormat.iFontSpec = editorFont->FontSpecInTwips();
   charFormatMask.SetAttrib(EAttFontTypeface);
   charFormatMask.SetAttrib(EAttFontHeight);   

   // Set font to GlobalTextEditor
   iRtEd->SelectAllL();   
   iRtEd->ApplyCharFormatL(charFormat,charFormatMask);
   iRtEd->SetCursorPosL(0,0);
   iRtEd->SetBackgroundColorL(KRgbSymbianOrange);
   iCoeEnv->ReleaseScreenFont(editorFont);
   CleanupStack::Pop();                    // editorFont

   // Change label text.

   CleanupStack::Pop();  // fontSpec
   delete fontSpec;    // Delete Font
   }

  - In the function above i set font for a richtext control and it work well.
Tue, 2005-02-15 11:13
Anonymous (not verified)
Forum posts: 2018
Anyone using custom fonts?
Does your code work with .TTf font file, or GDR font file.
i have arabic font file in ttf format, my application needs to display arabic characters.

with best regards
khair m soomro
Wed, 2005-02-16 03:56
Joined: 2004-12-30
Forum posts: 44
It's fine
Cheezy It's work very well
Fri, 2005-02-18 12:22
Joined: 2003-12-20
Forum posts: 85
Anyone using custom fonts?
Thankx,

Including the  TTF font, am i need any other setting to display arabic characters in UIQ emulator.
like LAngauge tag in mmp file. or any other unicode setings.

i have stored my arabic unicode values in database, i am able to load it in to variable but not able to display it on the screen.

if u have any code plz send it to me, otherwise give me ur email i will send u the ttf file

with best regards
khair m soomro
Sat, 2005-02-19 04:06
Joined: 2004-12-30
Forum posts: 44
It need not any configuration at all
Hi.

It need not any configuration at all. Cheezy .
You don't have to set language in mmp file or anything.

Just copy your font into system directory ( for example system\apps\font\ ) then load it from your program using my code.

To display it on the screen you need an unicode edwin ( in my case i used
richtext editor ). Then all you have to do is for example

aRichtex->InsertL(Unicodechar,position);

If you do not have a rich text control, give me your email. Cheezy
Mon, 2005-02-21 06:21
Joined: 2003-12-20
Forum posts: 85
Anyone using custom fonts?
here is my email
kmsoomro@yahoo.com
if u have sample code plz send it to me, i shall be verythankful to u


with best regards
khair m soomro
Tue, 2005-03-15 04:06
Joined: 2004-10-29
Forum posts: 4
Anyone using custom fonts?
here is my email
companymen@163.com
if u have sample code plz send it to me, i shall be verythankful to u
Mon, 2005-07-25 12:13
Joined: 2004-09-24
Forum posts: 9
Re: Anyone using custom fonts?

Plz send me the code too

Lilesh.patel@gmail.com

Thanks ,
Lilesh.
  • Login to reply to this topic.