Page 1 of 1

How to make the following font in Cegui?

Posted: Thu May 19, 2011 02:51
by ogre2012
the font as following:

http://blog.csdn.net/oryoung2008/archive/2011/05/19/6431478.aspx


I have modify the StaticText.But i failed.
part of them:

Code: Select all

<WidgetLook name="TaharezLook/StaticShared">
       <PropertyDefinition name="DropTextColour" initialValue="tl:FF00FF00 tr:FF00FF00 bl:FF00FF00 br:FF00FF00" redrawOnWrite="true" />
      <PropertyDefinition name="TextColour" initialValue="tl:FFFF00FF tr:FFFF00FF bl:FFFF00FF br:FFFF00FF" redrawOnWrite="true" />
      <PropertyDefinition name="VertFormatting" initialValue="Stretched" redrawOnWrite="true" />
        <PropertyDefinition name="HorzTextFormatting" initialValue="Stretched" redrawOnWrite="true" />


      <ImagerySection name="label">
            <TextComponent>
                <Area>
                    <Dim type="LeftEdge" >
                    <AbsoluteDim  value = "0"/>
                     <DimOperator op="Add">
                          <AbsoluteDim  value = "2"/>
                     </DimOperator>
               </Dim>
                    <Dim type="TopEdge" >
                  <AbsoluteDim  value = "0"/>
                     <DimOperator op="Add">
                          <AbsoluteDim  value = "2"/>
                     </DimOperator>
               </Dim>
                    <Dim type="Width" >
                        <UnifiedDim scale="1" type="Width" />
                    </Dim>
                    <Dim type="Height" >
                        <UnifiedDim scale="1" type="Height" />
                    </Dim>
                </Area>
                <ColourRectProperty name="DropTextColour" />
                <VertFormatProperty name="VertFormatting" />
                <HorzFormatProperty name="HorzTextFormatting" />
            </TextComponent>
         <TextComponent>
             <Area>
                    <Dim type="LeftEdge" >
                    <AbsoluteDim  value = "0"/>
               </Dim>
                    <Dim type="TopEdge" >
                  <AbsoluteDim  value = "0"/>
               </Dim>
                    <Dim type="Width" >
                        <UnifiedDim scale="1" type="Width" />
                    </Dim>
                    <Dim type="Height" >
                        <UnifiedDim scale="1" type="Height" />
                    </Dim>
                </Area>
                <ColourRectProperty name="TextColour" />
                <VertFormatProperty name="VertFormatting" />
                <HorzFormatProperty name="HorzTextFormatting" />
         </TextComponent>
      </ImagerySection>

Re: How to make the following font in Cegui?

Posted: Thu May 19, 2011 20:17
by Jamarr
This is not supported by default in CEGUI so you either have to fake it, use a pregenerated bitmapped font, or...?

Font Shadow (overlay):
viewtopic.php?p=17821

Font Bitmap Generator:
http://www.ogre3d.org/forums/viewtopic. ... 12#p327912

I wonder how difficult it would be for CEGUI to expose the underlying Freetype glyphs (textures?) via the Font? class and allow post-processing effects using a texture/pixel shader? I've never tried anything like this so I don't know if this is feasible or if I am way off base? But dynamic font-effects intrigues me.

Re: How to make the following font in Cegui?

Posted: Sun May 22, 2011 08:53
by CrazyEddie
I don't have specifics to give at the moment - because I haven't really though about it too deeply - but in the future we want to give people access to a lot more stuff and allow more opportunities for advanced rendering in the future. I think access to resources at a more fine-grained level is one way this could happen.

CE.