ocornut
31a144b60c
Fix comments ( #3534 )
4 years ago
Bartosz Taudul
6469b94304
Silence memset warning. ( #3505 )
Compiling the code as-is results in the following warning:
-->8--
imgui_freetype.cpp:341:72: warning: ‘void* memset(void*, int, size_t)’
clearing an object of type ‘struct ImFontBuildSrcDataFT’ with no
trivial copy-assignment; use assignment or value-initialization
instead [-Wclass-memaccess]
341 | memset(src_tmp_array.Data, 0, (size_t)src_tmp_array.size_in_bytes());
| ^
imgui_freetype.cpp:302:8: note: ‘struct ImFontBuildSrcDataFT’ declared here
302 | struct ImFontBuildSrcDataFT
| ^~~~~~~~~~~~~~~~~~~~
--8<--
This is caused by presence of ImVector<> directly in ImFontBuildSrcDataFT data
structure, as well as in the child ImBitVector. Since ImVector<> has a
constructor, the compiler infers that initialization by memset is not valid.
Such initialization is not a bug, however, as the default ImVector<> ctor just
sets the structure data members to 0, which is exactly what the memset does.
Casting the data structure address to void* pointer silences this warning.
4 years ago
ocornut
90b152f265
ImFontAtlas: Fixed multiple rebuild with same inputs erroneously increased ConfigDataCount. CI: Update Ubuntu 18.04 > 20.04 (motivated by #3369 )
Fix Freetype warning.
4 years ago
omar
5d87941451
Fixed ImFontConfig::GlyphExtraSpacing and ImFontConfig::PixelSnapH settings being pulled from the merged/target font settings when merging fonts, instead of being pulled from the source font settings.
4 years ago
Rokas Kupstys
0738611559
Misc: Bunch of code formatting changes suggested by a pass running 'astyle'
4 years ago
ocornut
53dfccbe4b
imgui_freetype: Fix for rare case where FT_Get_Char_Index() succeed but FT_Load_Glyph() fails. ( #618 )
4 years ago
omar
832fda8488
Fixed stray end of line blanks, added comments in .editorconfig, tweaked some headers.
5 years ago
omar
cc0d4e346a
Misc: Added an explicit compile-time test for non-scoped IM_ASSERT() macros to redirect users to a solution + fixed our stb wrappers.
+ Nav: Use nav layer enum, comments.
5 years ago
David Kalnischkies
2fd411a83e
Support custom stb_rect_pack filename in Freetype ( #3062 )
Copies the #define magic from imgui_draw.cpp to the imgui_freetype implementation to allow the use of a custom stb rect_pack here as well.
References: fe5347ef94
5 years ago
ocornut
339ffd25a9
Internals: Renamed ImBoolVector to ImBitVector, added low-level loose function to replicate the behavior include a help SetBitRange() function.
5 years ago
omar
d16c87a5b1
Internals: Minor renaming
5 years ago
omar
4b3c5ff5f1
Comments + minor moving
5 years ago
Rokas Kupstys
f03c00bc89
Added imgui_single_file.h, We use this to validate compiling all *.cpp in same compilation unit.
Removed Unity builds stuff from example_null/. CI builds a temporary .cpp file.
5 years ago
omar
bdce833636
Version 1.74
5 years ago
omar
26d177bc03
Docs: Moved misc/fonts/README.txt to docs/FONTS.txt. + tweaks
5 years ago
omar
ca63349eb4
Renamed XX-bits -> XX-bit in comments to match what the world appears to be using.
5 years ago
Rokas Kupstys
c863c1f6a1
Clean up number rounding. Now it is more obvious what code is doing. ( #2862 )
Add IM_ROUND() macro
Replace IM_FLOOR(n + 0.5f) and ImFloor(n + 0.5f) with IM_ROUND(n)
5 years ago
omar
4e56de757c
Doc: Promote Discord over Discourse. Obsoleting Discourse server.
5 years ago
Rokas Kupstys
714fe29d1a
Replace manual flooring with IM_FLOOR() macro. ( #2850 )
Macro is used to ensure that flooring operation is always inlined even in debug builds. __forceinline does not force inlining in /Od builds with MSVC.
(cherry picked from commit bc165df6fd
)
5 years ago
omar
3bbc27ebd9
Fixed more FAQ links. ( #2848 )
5 years ago
omar
c262276988
Version 1.74 WIP
5 years ago
omar
d5efe16157
Version 1.73
5 years ago
omar
f624455d7b
Version 1.73 WIP
5 years ago
omar
6a0d0dab5a
Version 1.72b (patch for nav)
5 years ago
omar
9183e7c426
Version 1.73 WIP
5 years ago
omar
ecb9b1e2eb
Version 1.72
5 years ago
luk1337
1820aaf444
imgui_freetype: Initialize FT_MemoryRec_ struct manually ( #2686 )
This fixes gcc warning: missing field 'alloc' initializer [-Wmissing-field-initializers]
5 years ago
omar
d23f1b1409
fonts/binary_to_compress: display error message when failing to open file + misc comments.
5 years ago
omar
4b95e7c2f3
Doc: Tweak and extra mention of AddCustomRectFontGlyph + made the example register two rectangles.
5 years ago
omar
e9b92d1cef
Disable -Wpragmas warning in GCC to avoid relying on version checks, as unusual/forks/mods don't appear to always have same warning<>version. ( #2618 )
+ Fix version number in imgui.h
5 years ago
omar
5286ecb8a7
Version 1.72 WIP
5 years ago
omar
2da1c66d15
Version 1.71 + comments
5 years ago
omar
4597632662
Readme, comments, dear imgui prefixes
5 years ago
omar
c487bc52a2
Fonts: Added some details about using custom colorful icons.
6 years ago
HolyBlackCat
87c5356d97
FreeType: Added RasterizerFlags::Monochrome flag to disable font anti-aliasing. ( #2545 ) Combine with RasterizerFlags::MonoHinting for best results.
6 years ago
omar
42fc563fed
Version 1.71 WIP + fixed minor typo
6 years ago
omar
d1d5075b66
Version 1.70
6 years ago
omar
c8fd4afd75
Misc: Added IM_MALLOC/IM_FREE macros mimicking IM_NEW/IM_DELETE so user doesn't need to revert to using the ImGui::MemAlloc()/MemFree() calls directly.
6 years ago
omar
bd351e9ac5
Misc: Added IM_MALLOC/IM_FREE macros mimicking IM_NEW/IM_DELETE so user doesn't need to revert to using the ImGui::MemAlloc()/MemFree() calls directly.
6 years ago
omar
e21bbee311
Examples: DirectX9: Fixed erroneous assert in ImGui_ImplDX9_InvalidateDeviceObjects(). FreeType: Fixed suggested code to not require an initial build call.. ( #2454 )
6 years ago
omar
cf2c52282d
Version 1.70 WIP
6 years ago
omar
55c02099c5
Version 1.69, comments, typos
6 years ago
omar
897badec7a
Demo: InputText: Demonstrating use of ImGuiInputTextFlags_CallbackResize. ( #2006 , #1443 , #1008 ).
6 years ago
Lucas Lazare
ab80ee6453
Added InputTextWithHint() ( #2400 )
Squashed commit of the following:
commit 1970d84051
Author: Lucas Lazare <lazarelucas@yahoo.fr>
Date: Tue Mar 5 12:20:39 2019 -0500
Removing sneaky tabulations #2 (why, editor T-T)
I should update my settings, I guess
commit 219bdfcb7f
Author: Lucas Lazare <lazarelucas@yahoo.fr>
Date: Tue Mar 5 12:17:27 2019 -0500
Removing useless check introduced in b0d172
commit 8afd7a2b45
Author: Lucas Lazare <lazarelucas@yahoo.fr>
Date: Tue Mar 5 11:49:24 2019 -0500
Removing sneaky tabulations
commit 8e04908631
Author: Lucas Lazare <lazarelucas@yahoo.fr>
Date: Tue Mar 5 11:45:13 2019 -0500
Moving InputTextHinted code to InputTextEx
commit b0d1723a2f
Author: Lucas Lazare <lazarelucas@yahoo.fr>
Date: Tue Mar 5 00:23:02 2019 -0500
C++11 to C++98
commit 9afeae3998
Author: Lucas Lazare <lazarelucas@yahoo.fr>
Date: Mon Mar 4 23:43:28 2019 -0500
Added InputTextHinted
6 years ago
omar
f5bf6e38d2
Font: Fixed assert when specifying duplicate/overlapping ranges within a same font. ( #2353 , #2233 )
6 years ago
omar
db40699990
imgui_freeetype: Updated suggested test code.
6 years ago
omar
93d1179805
Examples: Extracted gamepad code into ImGui_ImplGlfw_UpdateGamepads(). Renamed matching Win32 function for consistency.
Added more link to nothing's oversample document. Spacing bits.
6 years ago
omar
ee3b4f2bf1
Using IM_UNUSED() macro.
6 years ago
omar
ea7206fd4f
Fixed using imgui_freetype.cpp in unity builds. ( #2302 )
6 years ago
omar
54ba8a643e
Removed trailing spaces from text files. ( #2038 , #2299 )
6 years ago