This file is indexed.

/usr/include/cegui-0.8.4/CEGUI/FontGlyph.h is in libcegui-mk2-dev 0.8.4+dfsg-4ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/***********************************************************************
    created:    Sun Jul 19 2009
    author:     Paul D Turner <paul@cegui.org.uk>
*************************************************************************/
/***************************************************************************
 *   Copyright (C) 2004 - 2011 Paul D Turner & The CEGUI Development Team
 *
 *   Permission is hereby granted, free of charge, to any person obtaining
 *   a copy of this software and associated documentation files (the
 *   "Software"), to deal in the Software without restriction, including
 *   without limitation the rights to use, copy, modify, merge, publish,
 *   distribute, sublicense, and/or sell copies of the Software, and to
 *   permit persons to whom the Software is furnished to do so, subject to
 *   the following conditions:
 *
 *   The above copyright notice and this permission notice shall be
 *   included in all copies or substantial portions of the Software.
 *
 *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 *   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 *   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 *   IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
 *   OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 *   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 *   OTHER DEALINGS IN THE SOFTWARE.
 ***************************************************************************/
#ifndef _CEGUIFontGlyph_h_
#define _CEGUIFontGlyph_h_

#include "CEGUI/Image.h"

// Start of CEGUI namespace section
namespace CEGUI
{
/*!
\brief
    internal class representing a single font glyph.

    For TrueType fonts initially all FontGlyph's are empty
    (getImage() will return 0), but they are filled by demand.
*/
class CEGUIEXPORT FontGlyph:
    public AllocatedObject<FontGlyph>
{
public:
    //! Constructor.
    FontGlyph(float advance = 0.0f, Image* image = 0, bool valid = false) :
        d_image(image),
        d_advance(advance),
        d_valid(valid)
    {}

    //! Return the CEGUI::Image object rendered for this glyph.
    Image* getImage() const
    { return d_image; }

    //! Return the scaled pixel size of the glyph.
    Sizef getSize(float x_scale, float y_scale) const
    { return Sizef(getWidth(x_scale), getHeight(y_scale)); }

    //! Return the scaled width of the glyph.
    float getWidth(float x_scale) const
    { return d_image->getRenderedSize().d_width * x_scale; }

    //! Return the scaled height of the glyph.
    float getHeight(float y_scale) const
    { return d_image->getRenderedSize().d_height * y_scale; }

    /*!
    \brief
        Return the rendered advance value for this glyph.

        The rendered advance value is the total number of pixels from the
        current pen position that will be occupied by this glyph when rendered.
    */
    float getRenderedAdvance(float x_scale) const
    { return (d_image->getRenderedSize().d_width +
              d_image->getRenderedOffset().d_x) * x_scale; }

    /*!
    \brief
        Return the horizontal advance value for the glyph.

        The returned value is the number of pixels the pen should move
        horizontally to position itself ready to render the next glyph.  This
        is not always the same as the glyph image width or rendererd advance,
        since it allows for horizontal overhangs.
    */
    float getAdvance(float x_scale = 1.0) const
    { return d_advance * x_scale; }

    //! Set the horizontal advance value for the glyph.
    void setAdvance(float advance)
    { d_advance = advance; }

    //! Set the CEGUI::Image object rendered for this glyph.
    void setImage(Image* image)
    { d_image = image; }

    //! mark the FontGlyph as valid
    void setValid(bool valid)
    { d_valid = valid; }

    //! return whether the FontGlyph is marked as valid
    bool isValid() const
    { return d_valid; }

private:
    //! The image which will be rendered for this glyph.
    Image* d_image;
    //! Amount to advance the pen after rendering this glyph
    float d_advance;
    //! says whether this glyph info is actually valid
    bool d_valid;
};

} // End of  CEGUI namespace section

#endif  // end of guard _CEGUIFontGlyph_h_