2020-12-24 08:29:05 +01:00
|
|
|
/****************************************************************************
|
|
|
|
*
|
|
|
|
* ftsdferrs.h
|
|
|
|
*
|
|
|
|
* Signed Distance Field error codes (specification only).
|
|
|
|
*
|
2022-01-11 10:54:10 +01:00
|
|
|
* Copyright (C) 2020-2022 by
|
2020-12-24 08:29:05 +01:00
|
|
|
* David Turner, Robert Wilhelm, and Werner Lemberg.
|
|
|
|
*
|
|
|
|
* Written by Anuj Verma.
|
|
|
|
*
|
|
|
|
* This file is part of the FreeType project, and may only be used,
|
|
|
|
* modified, and distributed under the terms of the FreeType project
|
|
|
|
* license, LICENSE.TXT. By continuing to use, modify, or distribute
|
|
|
|
* this file you indicate that you have read the license and
|
|
|
|
* understand and accept it fully.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-08-16 13:39:22 +02:00
|
|
|
|
|
|
|
#ifndef FTSDFERRS_H_
|
|
|
|
#define FTSDFERRS_H_
|
|
|
|
|
[sdf] Add common elements for 'sdf' and 'bsdf' renderers.
* src/sdf/ftsdfrend.h (SDF_Rendere_Module, ft_sdf_renderer_class,
ft_bitmap_sdf_renderer_class): New structures.
* src/sdf/ftsdfcommon.h (DEFAULT_SPREAD, MIN_SPREAD_MAX_SPREAD,
USE_SQUARED_DISTANCES): New macros.
(FT_INT_26D6, FT_INT_16D16, FT_26D6_16D16): New macros.
(FT_CALL, VECTOR_LENGTH_16D16): New macros.
(FT_26D6_Vec, FT_16D16_Vec, FT_16D16, FT_26D6, FT_6D10, FT_CBox):
New typedefs.
(square_root): New macro.
* src/sdf/ftsdferrs.h: Add module error setup.
2020-08-17 08:10:57 +02:00
|
|
|
#include <freetype/ftmoderr.h>
|
|
|
|
|
|
|
|
#undef FTERRORS_H_
|
|
|
|
|
|
|
|
#undef FT_ERR_PREFIX
|
|
|
|
#define FT_ERR_PREFIX Sdf_Err_
|
|
|
|
#define FT_ERR_BASE FT_Mod_Err_Sdf
|
|
|
|
|
|
|
|
#include <freetype/fterrors.h>
|
2020-08-16 13:39:22 +02:00
|
|
|
|
|
|
|
#endif /* FTSDFERRS_H_ */
|
|
|
|
|
2020-12-24 08:29:05 +01:00
|
|
|
|
2020-08-16 13:39:22 +02:00
|
|
|
/* END */
|