<?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 - Font Size - Comments</title>
 <link>http://www.newlc.com/topic-9183</link>
 <description>Comments for &quot;Font Size&quot;</description>
 <language>en</language>
<item>
 <title>Re: Font Size</title>
 <link>http://www.newlc.com/topic-9183#comment-22650</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Where are you using TFontSpec? The code you&amp;#039;ve shown does not use it.&lt;br /&gt;&lt;br /&gt;Here is some sample code based on one of the series 60 examples:&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;void CAknExEditorContainer::SetSystemFontL(TInt aFontEnum)&lt;br /&gt;Â  Â  {&lt;br /&gt;Â  Â  const CFont* editorFont = LatinPlain12();&lt;br /&gt;&lt;br /&gt;Â  Â  switch (aFontEnum)&lt;br /&gt;Â  Â  Â  Â  {&lt;br /&gt;Â  Â  Â  Â  case ELatinPlain12:&lt;br /&gt;Â  Â  Â  Â  Â  Â  editorFont = LatinPlain12();&lt;br /&gt;Â  Â  Â  Â  Â  Â  break;&lt;br /&gt;Â  Â  Â  Â  case ELatinBold12:&lt;br /&gt;Â  Â  Â  Â  Â  Â  editorFont = LatinBold12();&lt;br /&gt;Â  Â  Â  Â  Â  Â  break;&lt;br /&gt;Â  Â  Â  Â  default:&lt;br /&gt;Â  Â  Â  Â  Â  Â  return;&lt;br /&gt;Â  Â  Â  Â  }&lt;br /&gt;&lt;br /&gt;Â  Â  TCharFormatÂ  Â  Â charFormat;&lt;br /&gt;Â  Â  TCharFormatMask charFormatMask;&lt;br /&gt;&lt;br /&gt;Â  Â  charFormat.iFontSpec = editorFont-&amp;gt;FontSpecInTwips();&lt;br /&gt;Â  Â  charFormatMask.SetAll();&lt;br /&gt;&lt;br /&gt;Â  Â  // Set font to GlobalTextEditor&lt;br /&gt;Â  Â  iGTextEd-&amp;gt;ApplyCharFormatL(charFormat, charFormatMask);&lt;br /&gt;&lt;br /&gt;Â  Â  // Change label text.&lt;br /&gt;Â  Â  TBuf&amp;lt;KBufLength&amp;gt; sizeText;&lt;br /&gt;Â  Â  TBuf&amp;lt;KBufLength&amp;gt; formatText;&lt;br /&gt;Â  Â  iCoeEnv-&amp;gt;ReadResource(formatText, R_AKNEXEDITOR_CONTAINER4_LABEL_FORMAT_PT);&lt;br /&gt;Â  Â  sizeText.Format(formatText,&lt;br /&gt;Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â charFormat.iFontSpec.iHeight / KTwipsPerPoint);&lt;br /&gt;Â  Â  TBuf&amp;lt;KBufLength&amp;gt; labelText = charFormat.iFontSpec.iTypeface.iName;&lt;br /&gt;Â  Â  labelText.Append(sizeText);&lt;br /&gt;Â  Â  iLabel-&amp;gt;SetTextL(labelText);&lt;br /&gt;Â  Â  iLabel-&amp;gt;SetExtent(GTEXTED_LABEL_POS, iLabel-&amp;gt;MinimumSize());&lt;br /&gt;Â  Â  }&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;I Hope this helps.&lt;/div&gt;</description>
 <pubDate>Wed, 20 Jul 2005 16:58:42 +0200</pubDate>
 <dc:creator>glen.cook</dc:creator>
 <guid isPermaLink="false">comment 22650 at http://www.newlc.com</guid>
</item>
<item>
 <title>Font Size</title>
 <link>http://www.newlc.com/topic-9183</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/topic-9183&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/topic-9183#comments</comments>
 <category domain="http://www.newlc.com/forums/symbian-c">Symbian C++</category>
 <pubDate>Wed, 20 Jul 2005 12:28:12 +0200</pubDate>
 <dc:creator>impankaj24</dc:creator>
 <guid isPermaLink="false">9680 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
