Commit Graph

36 Commits

Author SHA1 Message Date
Priyeshkkumar faa3ee95a5 * docs/DEBUG: Update documentation. 2020-08-24 14:02:38 +05:30
Priyeshkkumar c96739bfc9 * builds/windows/ftdebug.c (ft_logging_init, ft_logging_init):
Fixed coding style.

    * src/base/ftdebug.c (ft_logging_init): Fixed coding style.
2020-08-24 13:47:38 +05:30
Priyesh Kumar 92847d87ef * builds/windows/ftdebug.c (ft_log_handler): Updated code according to the
recent updates in dlg library.
    (ft_logging_init): Added environment variable `FT_LOGGING_FILE', the
    variable `ft_fileptr' stores it's value.
    Changed function name `ft_custom_log_handler'->
    `FT_Custom_Log_Handler'.
    (ft_debug_init): Code Cleanup.
2020-08-24 07:44:37 +05:30
Priyeshkkumar ec03321013 * src/sfnt/ttload.c (tt_face_load_font_dir): Changed layout of tracing
messages.

    * src/base/ftdebug.c (ft_logging_init): Fix Seg fault.
2020-08-24 12:28:12 +05:30
Priyeshkkumar 4f472b5799 * include/freetype/ftlogging.h (FT_Trace_Set_Level): Use more relevant
parameters name in function declaration.
    (FT_Custom_Log_Handler): Changed function name `ft_custom_log_handler'->
    `FT_Custom_Log_Handler'.
    Updated documentation.

    * include/freetype/ftchapters.h: Added `debugging_apis' section under
    `support_api' chapter.

    * .gitmodules: Updated submodule to track recent changes in dlg library.

    * src/base/ftdebug.c (ft_log_handler): Updated code according to the
    recent updates in dlg library.
    (ft_logging_init): Added environment variable `FT_LOGGING_FILE', the
    variable `ft_fileptr' stores it's value.
    Changed function name `ft_custom_log_handler'->
    `FT_Custom_Log_Handler'.

    * include/freetype/internal/ftdebug.h: Changed function name
    `ft_custom_log_handler'-> `FT_Custom_Log_Handler'.

    * README.git: Updated documentation.

    * docs/DEBUG: Updated documentation.
2020-08-24 10:58:17 +05:30
Priyeshkkumar 17700d419b * include/freetype/internal/ftdebug.h (FT_LOG ): Use more relevant
temporary variable name, to hold the name of FT_COMPONENT.
    (FT_ERROR): Store the name of `FT_COMPONENT' in a temporary variable
    and then pass it as a parameter to `ft_add_tag' and `ft_remove_tag'.

    * src/base/ftdebug.c : Updated Comments.
    (FT_Trace_Set_Level, FT_Trace_Set_Default_Level): Reinitialize the
    values of `ft_timestamp_flag' and `ft_component_flag' every time
    `FT_Trace_Set_Level' and `FT_Trace_Set_Default_Level' is used.
2020-08-21 12:18:07 +05:30
Priyesh Kumar dc3c410a83 * builds/windows/vc2010/freetype.vcxproj (PreprocessorDefinitions):
Added `DLG_STATIC' for `Debug Static' configuration on both platforms.
2020-08-21 05:16:03 +05:30
Priyesh Kumar d86528a78e * src/base/ftobjs.c (Mac_Read_POST_Resource): Fixed `-Wformat'
warnings.

    *  src/bdf/bdflib.c (ACMSG3, ACMSG7): Fixed `-Wformat' warnings.
2020-08-14 11:34:41 +05:30
Priyesh Kumar ea09f0b7dc [priyesh]ChangeLog: Fix Date. 2020-08-13 14:02:44 +05:30
Priyesh Kumar 8bb02e725f * builds/windows/dlg/dlg.vcxproj (PreprocessorDefinitions): Added
`DLG_STATIC' macro for Static builds of dlg on both `x64' and `Win32'
    platforms.

    * builds/windows/vc2010/freetype.vcxproj (PreprocessorDefinitions):
    Added `FT_LOGGING' macro for Debug builds of FreeType on both `x64' and
    `Win32' platforms.
2020-08-13 13:58:23 +05:30
Priyeshkkumar 008ee3ebca * src/base/ftdebug.c (ft_log_handler): Fix "-Wunused-parameter" warning.
* include/freetype/ftlogging.h ( FTLOGGING_H_ ): Added Include guard.

    * src/*: Fixed format specifiers.

    * [priyesh]ChangeLog: Fix typo.
2020-08-12 14:47:03 +05:30
Priyesh Kumar 84c719491f Bug fix on Windows.
* include/freetype/internal/ftdebug.h: Store the name of current
    `FT_COMPONENT' and then pass it to the functions `ft_add_tag()' and
    `ft_remove_tag()'
2020-08-12 07:44:15 +05:30
Priyesh Kumar 141ac5301b [build] Fix MinGW errors while building dlg with FreeType on Windows.
* builds/freetype.mk (DLG_DIR): New variable to include dlg's header
files.
(INCLUDES): Added `DLG_DIR'
When using MinGW to build dlg along with FreeType on Windows there are
missing dlg's include files errors. Therefore we need to add path to dlg's
include files to remove the errors.

* src/base/ftsystem.c: Fix `-Wformat' warnings.
2020-08-06 06:21:22 +05:30
Priyesh Kumar daefd6e6cf [builds/windows] Skip dlg build for Release builds of FreeType on Windows 2020-07-30 15:21:49 +05:30
Priyesh Kumar c945a046b1 Added a Visual Studios project to build dlg along with FreeType on Windows. 2020-07-30 14:21:35 +05:30
Priyeshkkumar b528826f69 Merging master branch with priyeshLogLibrary branch 2020-07-28 13:43:28 +05:30
Priyeshkkumar b5d7cd3a4b [priyesh]ChangeLog: Corrected ChangeLog 2020-07-23 00:50:29 +05:30
Priyesh Kumar 4e3b8181a3 Minor Additions from Windows 2020-07-22 15:00:37 +05:30
Priyeshkkumar a0f918d1f1 Minor Changes 2020-07-22 19:46:14 +05:30
Priyesh Kumar 117da1f7e6 Minor Changes in autogen.sh and builds/toplevel.mk 2020-07-22 13:26:41 +05:30
Priyeshkkumar 9bd35c7d91 Updated builds/toplevel.mk for builds that don't use ./configure 2020-07-22 16:52:51 +05:30
Priyeshkkumar df53385b67 Updated freetype.mk to build dlg 2020-07-21 15:43:04 +05:30
Priyeshkkumar 1e1912dbac Started working on build process 2020-07-20 18:13:17 +05:30
Priyesh Kumar b3deaa037e fixed path seperators in [priyesh]ChangeLog 2020-07-15 19:18:53 +05:30
Priyesh Kumar e854adc669 Started adding the support of logging on windows 2020-07-15 18:33:43 +05:30
Priyeshkkumar 708d8098ec Updated [priyesh]ChangeLog representing changes in previous commit 2020-07-13 18:47:13 +05:30
Priyeshkkumar afa548bb74 Added a flag to toggle ON/OFF the printing of FT_COMPONENT and Timestamp with actual log message 2020-07-13 18:37:34 +05:30
Priyeshkkumar 0c793e381c Added code to print FT_COMPONENT and Time Stamp 2020-07-05 00:33:48 +05:30
Priyeshkkumar bfe6d5218a Added support of callback functions to handle logs outside FreeType 2020-07-04 13:09:33 +05:30
Priyeshkkumar b378812f22 Updates on dynamic change of trace level 2020-07-03 15:00:27 +05:30
Priyeshkkumar fde1c1698d Minor Updates on FT_ERROR part 2020-07-02 22:21:46 +05:30
Priyeshkkumar 1d6ffcc77a Added public APIs to set new/default trace level, started working on Callback function 2020-07-02 19:50:49 +05:30
Priyeshkkumar f7c5ed5f24 new line fixed 2020-06-30 18:14:20 +05:30
Priyeshkkumar 52926578db Addded logic to print trace messages to a file 2020-06-30 17:44:52 +05:30
Priyeshkkumar 421bb589e6 Added functions to initialize and un-initialize logging 2020-06-29 21:53:44 +05:30
Priyeshkkumar 01ce8ff340 Implemented a basic integration of dlg with FreeType 2020-06-29 17:49:57 +05:30