/usr/include/graphite/IGrJustifier.h is in libgraphite-dev 1:2.3.1-0.2build1.
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 | /*--------------------------------------------------------------------*//*:Ignore this sentence.
Copyright (C) 2003 SIL International. All rights reserved.
Distributable under the terms of either the Common Public License or the
GNU Lesser General Public License, as specified in the LICENSING.txt file.
File: IGrJustifier.h
Responsibility: Sharon Correll
Last reviewed: Not yet.
Description:
An interface for a justification agent that is used by the Graphite engine.
-------------------------------------------------------------------------------*//*:End Ignore*/
#ifdef _MSC_VER
#pragma once
#endif
#ifndef IGRJUSTIFIER_INCLUDED
#define IGRJUSTIFIER_INCLUDED
#include "GrResult.h"
namespace gr
{
class GraphiteProcess;
/*----------------------------------------------------------------------------------------------
Class: IGrJustifier
This class provides an interface for a justification agent for the Graphite engine.
----------------------------------------------------------------------------------------------*/
class IGrJustifier
{
public:
virtual ~IGrJustifier() {};
virtual GrResult adjustGlyphWidths(GraphiteProcess * pgje, int iGlyphMin, int iGlyphLim,
float dxCurrWidth, float dxDesiredWidth) = 0;
//virtual GrResult suggestShrinkAndBreak(GraphiteProcess * pfgjwe,
// int iGlyphMin, int iGlyphLim, float dxsWidth, LgLineBreak lbPref, LgLineBreak lbMax,
// float * pdxShrink, LgLineBreak * plbToTry) = 0;
// Return a Graphite-compatible justifier that can be stored in a Graphite segment.
// TODO: remove
//virtual void JustifierObject(IGrJustifier ** ppgjus) = 0;
// When a segment is being destroyed, delete this object, which is the wrapper for the
// text source inside of it.
// TODO: remove
//virtual void DeleteJustifierPtr() = 0;
};
} // namespace gr
#if defined(GR_NO_NAMESPACE)
using namespace gr;
#endif
#endif // !IGRJUSTIFIER_INCLUDED
|