David Capello
8304b7511d
Fix FreeType2 font rendering and font height calculation
...
We need to catch the glyph's bearingY value to render each glyph
correctly.
2016-03-15 18:43:36 -03:00
David Capello
e0135d6f57
Add fixes for gcc/clang in ft::FaceFT
2016-03-15 17:45:55 -03:00
David Capello
fb10cf1d36
Simplify code in generic_surface.h for gcc/clang
2016-03-15 16:34:41 -03:00
David Capello
9784c0d455
Minor change to fix gcc/clang compilation errors
2016-03-15 16:33:11 -03:00
David Capello
2fd94ed884
Simplify ft::Face API
...
Changes:
* Added ft::FaceBase to create a future Face impl with HarfBuzz as text
shaping engine
* Define ft::FaceBase::Glyph as the parameter given to the forEachGlyph
parameter
* forEachGlyph and calcTextBounds
* Remove operator FT_Face (we can use FaceBase::isValid() to know if the
face isn't null)
2016-03-15 15:15:37 -03:00
David Capello
6f0819fa30
Fix crash in GenericDrawTextSurface::drawChar() when a TTF is used with Unicode text
2016-03-15 15:10:56 -03:00
David Capello
cb4b4f8b4d
Minor change don't use drawUIString() in FileList::onPaint()
2016-03-15 12:56:44 -03:00
David Capello
8de92df6cc
Minor fix to show text caret on ui::Entry when it's at the end
2016-03-14 16:52:44 -03:00
David Capello
779875e728
Remove unused pixman-version.h.cmake file
2016-03-14 15:49:31 -03:00
David Capello
eec2d64f57
Replace FreeTypeFont::height() impl
2016-03-14 12:40:28 -03:00
David Capello
69a1161f69
Fix Entry bugs handling the text caret
...
Added more checks and improve performance in Entry::setCaretPos()
2016-03-14 12:39:45 -03:00
David Capello
29f6db6f35
Widget::textLength() returns the number of (Unicode) characters in the text field
2016-03-14 12:38:11 -03:00
David Capello
fb6a1481f9
Select Unicode charmap
2016-03-14 12:09:59 -03:00
David Capello
dbf5d69219
Add a simple cache system for glyphs
2016-03-14 12:09:45 -03:00
David Capello
3b2ce80e37
Fix compilation error in generic_surface.h with gcc and clang
2016-03-14 12:06:50 -03:00
David Capello
c0f402b945
Add she::Font::setAntialias() member function
2016-03-11 15:41:06 -03:00
David Capello
d020a19bd2
Add a simple cache mechanism to ft::Face (at the moment without cache)
2016-03-10 17:10:17 -03:00
David Capello
dfa6bcd16b
Add a basic TrueType font impl to she library using FreeType library
2016-03-10 15:49:13 -03:00
David Capello
d33a2adb64
Add ft library (a freetype wrapper)
2016-03-10 11:21:03 -03:00
David Capello
64111bf991
Merge branch 'remove-locked-surface' into freetype-font
...
# Conflicts:
# src/she/common/generic_surface.h
2016-03-09 12:31:42 -03:00
David Capello
0abe01c5f4
Merge she::LockedSurface/NonDisposableSurface with she::Surface
2016-03-09 11:00:17 -03:00
David Capello
0f60ca2e93
Fix #include in she/common/locked_surface.h
2016-03-08 18:41:02 -03:00
David Capello
d49d37302c
Rename she::System::loadBitmapFont -> loadSpriteSheetFont
2016-03-07 17:48:35 -03:00
David Capello
97f1d0f895
Rename she::CommonFont to SpriteSheetFont
2016-03-07 17:39:02 -03:00
David Capello
75203037e2
Merge branch 'master'
2016-03-04 15:44:04 -03:00
David Capello
962928a609
Add the possibility to assign a keyboard shortcut to color quantization ( #999 )
2016-03-04 15:41:32 -03:00
David Capello
ac67cb9e49
Remove unused graphics from skin
2016-03-04 15:09:50 -03:00
David Capello
36eb38a5e7
Merge pull request #997 from Kirozen/patch-1
...
Add support for MinGW in base/fstream_path.h
2016-03-04 11:36:00 -03:00
Etienne Faisant
c7968d4f2d
Update fstream_path.h
...
Fix build on Windows with MinGW
2016-03-04 15:03:46 +01:00
David Capello
451bf02b82
Remove unused variable from replace_image_colors()
2016-03-03 23:41:46 -03:00
David Capello
1ee3efd91d
doc/image_buffer.h needs uint8_t definition
2016-03-03 23:25:49 -03:00
David Capello
51f58fda5f
base/24bits.h needs uint8_t definition
2016-03-03 22:43:10 -03:00
David Capello
0a5e108ce1
Include base/ints.h in median_filter.h because it's needed for uint8_t
2016-03-03 22:30:13 -03:00
David Capello
368f64d5dc
Include base/ints.h from convolution_matrix_filter.h
2016-03-03 21:22:17 -03:00
David Capello
093c5e1e0e
Fix base/buffer.h so we include base/ints.h to define uint8_t
2016-03-03 20:33:53 -03:00
David Capello
458fa98138
Merge branch 'without-have-config-h'
2016-03-03 19:30:32 -03:00
David Capello
03951fd347
Minor change in INSTALL.md to create a link to issue #913
2016-03-03 19:29:54 -03:00
David Capello
d33b8f7064
Set default path (MODP_B64_DIR) to find modp_b64 from base library
2016-03-03 19:28:29 -03:00
David Capello
9784721a67
she/system.h needs gfx::Size
2016-03-03 19:27:43 -03:00
David Capello
a14a81a2c0
Undefine ERROR macro in base/log.h if it's defined
2016-03-03 19:27:09 -03:00
David Capello
260f597cc4
Define PACKAGE/VERSION/UPDATE_URL if they are undefined
2016-03-03 19:26:46 -03:00
David Capello
285deb603e
Define _CRT_SECURE_NO_WARNINGS on sub-libraries that need it
2016-03-03 19:22:52 -03:00
David Capello
7b06b74715
Include base/log.h on files that use LOG() macro
2016-03-03 19:21:53 -03:00
David Capello
8c9d9eb84c
Replace NULL with nullptr on files that don't include base/base.h
2016-03-03 19:20:57 -03:00
David Capello
9a7ffab5a0
Move stdints to base/ints.h file
2016-03-03 19:20:00 -03:00
David Capello
5f97e66a8b
Include base/base.h on files that use MIN/MID/MAX
2016-03-03 19:18:46 -03:00
David Capello
4f6a7a7742
Include base/debug.h on files that use ASSERT or TRACE
2016-03-03 19:17:07 -03:00
David Capello
f9238cd77b
Merge branch 'sirblackheart-add-win-key-modifier'
2016-03-02 12:34:06 -03:00
David Capello
645486f435
Add tooltip to "Super" key checkbox in shortcut dialog
2016-03-02 12:33:05 -03:00
David Capello
cb86fb4c8f
Rename ui::winKeyName to ui::kWinKeyName
2016-03-02 10:31:39 -03:00