How to make the following font in Cegui?

Help and discussion regarding skinning, themes, and other artistic content.

Moderators: CEGUI MVP, CEGUI Team

ogre2012
Not too shy to talk
Not too shy to talk
Posts: 21
Joined: Wed Mar 23, 2011 07:55

How to make the following font in Cegui?

Postby ogre2012 » Thu May 19, 2011 02:51

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>

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Re: How to make the following font in Cegui?

Postby Jamarr » Thu May 19, 2011 20:17

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.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: How to make the following font in Cegui?

Postby CrazyEddie » Sun May 22, 2011 08:53

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.


Return to “Skins and Themes”

Who is online

Users browsing this forum: No registered users and 3 guests