<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - CRichText and Custom Font - Comments</title>
 <link>http://www.newlc.com/en/topic-16251</link>
 <description>Comments for &quot;CRichText and Custom Font&quot;</description>
 <language>en</language>
<item>
 <title>Re: CRichText and Custom Font</title>
 <link>http://www.newlc.com/en/topic-16251#comment-34998</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Maybe a good idea to reduce the complexity of the problem, take the RichText stuff out of the loop just for now and try to draw one of the codepoints in question directly by CGraphicsContext::DrawText somewhere, after selecting the font into the context.&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Sun, 08 Oct 2006 14:32:33 +0200</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 34998 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: CRichText and Custom Font</title>
 <link>http://www.newlc.com/en/topic-16251#comment-34997</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Symbian supports TrueType fonts with the help of a port of Freetype:&lt;br /&gt;&lt;a href=&quot;http&amp;#58;//www.symbian.com/developer/downloads/syslibs.html&quot; target=&quot;_blank&quot;&gt;http://www.symbian.com/developer/downloads/syslibs.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;However, there seem to be some limits. The UIQ 2.1 emulator that I use has Freetype installed, but a version that does not work with font collections (.ttc files), only fonts (.ttf files), and it does not accept Code2000, a font with a phantastic number of scripts, as I said without telling what&amp;#039;s the problem.&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Sun, 08 Oct 2006 14:25:11 +0200</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 34997 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: CRichText and Custom Font</title>
 <link>http://www.newlc.com/en/topic-16251#comment-34996</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;i tested that my font is installed,,&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;TTypefaceSupport *typeface;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;TInt iFontCount = iCoeEnv-&amp;gt;ScreenDevice()-&amp;gt;NumTypefaces();&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;for( TInt i=0;i&amp;lt;iFontCount;i++)&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;{&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;typeface = new TTypefaceSupport;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;//User::LeaveIfNull(typeface);&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;iCoeEnv-&amp;gt;ScreenDevice()-&amp;gt;TypefaceSupport(*typeface,i);&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;//TBuf&amp;lt;100&amp;gt; a(typeface-&amp;gt;iTypeface.iName.Des());&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;RDebug::Print(_L(&amp;quot;type face name(): %S&amp;quot;), &amp;amp;typeface-&amp;gt;iTypeface.iName.Des());&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;//User::LeaveIfError(iFont.Append(typeface));&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;and i got out like this &lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;type face name(): LatinBold13&lt;br /&gt;type face name(): LatinBold17&lt;br /&gt;type face name(): LatinBold19&lt;br /&gt;type face name(): LatinPlain12&lt;br /&gt;type face name(): Acb14&lt;br /&gt;type face name(): Acb30&lt;br /&gt;type face name(): Acp5&lt;br /&gt;type face name(): MBSania&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;it shows that my MBSania font is insalled, but to display it.......&lt;/div&gt;</description>
 <pubDate>Sun, 08 Oct 2006 10:50:18 +0200</pubDate>
 <dc:creator>kmsoomro</dc:creator>
 <guid isPermaLink="false">comment 34996 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: CRichText and Custom Font</title>
 <link>http://www.newlc.com/en/topic-16251#comment-34995</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;i welcome if any one guide/ give me example in True Type Font. &lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Sun, 08 Oct 2006 10:29:47 +0200</pubDate>
 <dc:creator>kmsoomro</dc:creator>
 <guid isPermaLink="false">comment 34995 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: CRichText and Custom Font</title>
 <link>http://www.newlc.com/en/topic-16251#comment-34994</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;I would first try to check whether the system accepts the font at all before trying to use it in a program.&lt;br /&gt;&lt;br /&gt;One way to do this: Copy the font to the device and check whether the FontViewer tool shows the font as installed:&lt;br /&gt;&lt;a href=&quot;http&amp;#58;//newlc.com/FontViewer.html&quot; target=&quot;_blank&quot;&gt;http://newlc.com/FontViewer.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If not then there is probably something wrong with the font itself.&lt;br /&gt;&lt;br /&gt;Btw, I don&amp;#039;t think your font will be a &amp;quot;custom&amp;quot; font. As far as I know Symbian treats all the .gdr font files that it finds in the font directories on the available drives in the same way. So if the font file is valid there should be no problem to use it.&lt;br /&gt;&lt;br /&gt;I once tried to build a .gdr font file myself and found Symbian to be less than helpful: It just silently ignored the file without giving the smallest hint about what it did not like about it.&lt;br /&gt;&lt;br /&gt;Did you consider working with TrueType fonts and a font that supports your script?&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Sat, 07 Oct 2006 21:18:38 +0200</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 34994 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: CRichText and Custom Font</title>
 <link>http://www.newlc.com/en/topic-16251#comment-34993</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;br /&gt;&lt;br /&gt;Hi&lt;br /&gt;&lt;br /&gt;My font is like Arabic font, but has some additional character set. Editor only displays Unicode value in Arabic format which is by default supported by the emulator and it skips (not display) additional characters of my language: the conclusion that I got is: editor may not load my custom .GDR font.&lt;br /&gt;&lt;br /&gt;Code example:&lt;br /&gt;&lt;br /&gt;Font path:&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;Epoc32\release\wins\urel\z\system\fonts&lt;br /&gt;&lt;br /&gt;z\system\fonts\MBSania.gdr&lt;br /&gt; &lt;/div&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;&lt;br /&gt;_LIT(KFontFileName,&amp;quot;MBSania.gdr&amp;quot;);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;CRichText* text = RichText();&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;TInt textSize = text-&amp;gt;DocumentLength();&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;TCharFormatMask charFormatMask; // the attribute mask&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;charFormatMask.SetAttrib(EAttFontTypeface );&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;TFontSpec aFontSpec(KFontFileName,2); &lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;TCharFormat charFormat(aFontSpec.iTypeface.iName, aFontSpec.iHeight);&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;text-&amp;gt;ApplyCharFormatL(charFormat, charFormatMask,textSize,aText.Length());&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Is there any code mistake plz guide me?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Sat, 07 Oct 2006 20:03:51 +0200</pubDate>
 <dc:creator>kmsoomro</dc:creator>
 <guid isPermaLink="false">comment 34993 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: CRichText and Custom Font</title>
 <link>http://www.newlc.com/en/topic-16251#comment-34992</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;CEikRichTextEditor::ApplyCharFormatL is probably what you need.&lt;br /&gt;&lt;br /&gt;If you use Forum Search, e.g. for &amp;quot;TCharFormat&amp;quot;, you will find a lot of older threads with all kinds of useful information about fonts, characters formats and RichText.&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Sat, 07 Oct 2006 09:05:34 +0200</pubDate>
 <dc:creator>rbrunner</dc:creator>
 <guid isPermaLink="false">comment 34992 at http://www.newlc.com</guid>
</item>
<item>
 <title>CRichText and Custom Font</title>
 <link>http://www.newlc.com/en/topic-16251</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/en/topic-16251&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/en/topic-16251#comments</comments>
 <category domain="http://www.newlc.com/en/forums/symbian-c">Symbian C++</category>
 <pubDate>Fri, 06 Oct 2006 20:22:05 +0200</pubDate>
 <dc:creator>kmsoomro</dc:creator>
 <guid isPermaLink="false">15936 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
