os/textandloc/fontservices/textshaperplugin/test/letest/letest.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
sl@0
     1
/*
sl@0
     2
 *******************************************************************************
sl@0
     3
 *
sl@0
     4
 *   Copyright (C) 1999-2003, International Business Machines
sl@0
     5
 *   Corporation and others.  All Rights Reserved.
sl@0
     6
 *
sl@0
     7
 *******************************************************************************
sl@0
     8
 *   file name:  letest.h
sl@0
     9
 *
sl@0
    10
 *   created on: 11/06/2000
sl@0
    11
 *   created by: Eric R. Mader
sl@0
    12
 */
sl@0
    13
sl@0
    14
#include "LETypes.h"
sl@0
    15
sl@0
    16
#define ARRAY_LENGTH(array) (sizeof array / sizeof array[0])
sl@0
    17
sl@0
    18
struct TestInput
sl@0
    19
{
sl@0
    20
    char      *fontName;
sl@0
    21
    LEUnicode *text;
sl@0
    22
    le_int32   textLength;
sl@0
    23
    le_int32   scriptCode;
sl@0
    24
    le_bool    rightToLeft;
sl@0
    25
};
sl@0
    26
sl@0
    27
extern le_int32 testCount;
sl@0
    28
sl@0
    29
extern TestInput testInputs[];
sl@0
    30
sl@0
    31
struct TestResult
sl@0
    32
{
sl@0
    33
    le_int32   glyphCount;
sl@0
    34
    LEGlyphID *glyphs;
sl@0
    35
    le_int32  *indices;
sl@0
    36
    float     *positions;
sl@0
    37
};
sl@0
    38
sl@0
    39
extern TestResult testResults[];
sl@0
    40
sl@0
    41
int main_entry();
sl@0
    42
sl@0
    43