#
e70df3f7 |
|
14-Feb-2023 |
Máximo Castañeda <antiswen@yahoo.es> |
app_server: AppFontManager does not need a BLooper Saves at least a thread and a few semaphores per app. Change-Id: Ied43e5944471918b34b897722346a25d159090df Reviewed-on: https://review.haiku-os.org/c/haiku/+/6073 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
|
#
6ae6a38e |
|
11-Feb-2023 |
Máximo Castañeda <antiswen@yahoo.es> |
app_server: refactor font managers Move common add/remove code to the base class and improve encapsulation. Loading FreeType is the responsibility of the global font manager. Rename FontManagerBase back to FontManager. Change-Id: I9396112f01583e19d03011106fd1fa1e37958ee8 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6072 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
#
cb190a7d |
|
10-Feb-2023 |
Máximo Castañeda <antiswen@yahoo.es> |
app_server: new font code cleanup: includes and the like Change-Id: I4b7f882fffc34be1984060838f13971c48d4abfc Reviewed-on: https://review.haiku-os.org/c/haiku/+/6059 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
|
#
88f36b2d |
|
10-Feb-2023 |
Dale Cieslak <dcieslak@yahoo.com> |
FontManagerBase: remove families from BObject list when deleting them possibly related to #18169 Change-Id: If878109e7d739494d71ff97447de6bdeaa9f905d Reviewed-on: https://review.haiku-os.org/c/haiku/+/6056 Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
|
#
a34c877f |
|
07-Feb-2023 |
Máximo Castañeda <antiswen@yahoo.es> |
app_server: FontStyle lifecycle FontFamily is babysitted by the FontManager. It doesn't own FontStyle references, there's no place in it to release them. FontManager owns a reference to the FontStyle, and it is in fStyleHashTable. Putting a style there acquires a new reference, so we can release the one from the new style. Removing a style from the map releases the reference. We need to clear the map before shutting down FreeType to get rid of our last references and let the styles die now instead of afterwards to avoid double freeing the faces. These solve the new crash from the previous patch. It didn't crash before because even after the map was destroyed there were still dangling references to the styles. On removing a user font, the style will remove itself from the family through the manager if that was the last reference, and the manager will remove and delete the family if it has no more styles. Change-Id: I460ff830fa8a8a5adb90dc8ea12120e1e50a5912 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6052 Reviewed-by: waddlesplash <waddlesplash@gmail.com>
|
#
4f52a155 |
|
16-Jan-2023 |
Dale Cieslak <dcieslak@yahoo.com> |
BFont: Minor code cleanup and autolocking for AppFontManager * changed explicit locking to use Autolocker for gFontManager/fAppFontManager in ServerApp, per comments in https://review.haiku-os.org/c/haiku/+/4790 * changed BFont::LoadFont (memory version) to use size_t for size and offset * no functional changes Change-Id: I438a4975d5bb1b2fa17bc54e9e171c31dadfeec5 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6003 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
#
85b82f85 |
|
19-Jul-2022 |
Dale Cieslak <dcieslak@yahoo.com> |
BFont: allow loading of user fonts from disk or memory This patch adds an API call to BFont, called LoadFont, that takes a string path to a font file. The user fonts are managed via a new class called AppFontManager that inherits from the base class FontManagerBase but adds the methods to add and remove user fonts from disk or memory. There is also a new method called UnloadFont to remove a user font, but on exit of an app all user fonts should be automatically cleaned up. Global/system fonts are managed by the GlobalFontManager, which is a new class that also inherits from the base class FontManagerBase, replacing the old "FontManager" class. A maximum of 128 user fonts may be loaded, and memory fonts may not exceed 20MB. There's also an overloaded version of LoadFont that accepts an area_id and loads the font from memory. A size and offset may optionally be provided to allow for an area that contains more than just a font. Change-Id: I6add42bdf0c0cefc0e2e2a4984fd848c3e7269e5 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4790 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
#
872ce8a1 |
|
30-Sep-2022 |
Augustin Cavalier <waddlesplash@gmail.com> |
app_server: Clean up default font size constants.
|
#
12ae5308 |
|
23-Jul-2022 |
John Scipione <jscipione@gmail.com> |
App Server: Style fixes related to font updates Reorder font defines to plain, fallback, bold, fallback, fixed, fallback. Minor functional changes: No BeOS font fallbacks for Haiku apps. Use FALLBACK_BOLD_FONT_STYLE instead of DEFAULT. Change-Id: Id053fd9434e8d34290cf68af89cf58fe7811f786 Reviewed-on: https://review.haiku-os.org/c/haiku/+/5497 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
#
8016cfee |
|
11-Feb-2022 |
Augustin Cavalier <waddlesplash@gmail.com> |
app_server: Put base class call in the switch where it belongs. We don't need to forward handled messages. Thanks axeld for the review.
|
#
57644006 |
|
10-Feb-2022 |
Augustin Cavalier <waddlesplash@gmail.com> |
app_server: Scan fonts in the looper thread. This way, the first unlucky application to request the font list after paths change (or on first app_server startup) will not stall out while the font list is rebuilt, at least most of the time. Should fix #17574.
|
#
bde40ece |
|
10-Feb-2022 |
Augustin Cavalier <waddlesplash@gmail.com> |
app_server: Remove TODO comment from B_NODE_MONITOR handling. As far as I can tell, this TODO has been resolved since 3 hours after it was added in 2005, when the second case of B_ENTRY_REMOVED (i.e. single-file removal instead of whole-directory removal) was implemented. _RemoveDirectory does not appear to be fully implemented, though; but it has its own TODO and does not need this one.
|
#
ec39014c |
|
10-Feb-2022 |
Augustin Cavalier <waddlesplash@gmail.com> |
app_server: Add default case for FontManager::MessageReceived.
|
#
779ab335 |
|
09-Dec-2020 |
X512 <danger_mail@list.ru> |
use .IsSet() instead if .Get() != NULL Change-Id: Ia2b7a719fd398e78cc3b11d4f7b02cb81179f65f Reviewed-on: https://review.haiku-os.org/c/haiku/+/3488 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
|
#
d99d8dbd |
|
27-Aug-2020 |
X512 <danger_mail@list.ru> |
app_server memory management: use ObjectDeleter to mark ownership Make object ownership explicit by use of ObjectDeleter where possible. Change-Id: I499a00aa3390d1510ae284419e73faffa5166430 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2695 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com> Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
|
#
60d30785 |
|
27-Aug-2020 |
X512 <danger_mail@list.ru> |
app_server memory management fixes: use BReference Use BReference for more automated reference counting in app_server, fixing some use-after-free and other problems. Extracted from https://review.haiku-os.org/c/haiku/+/2695 Change-Id: I141bb248229405896b29feff3338447f7257b0b4 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3175 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
|
#
60a6f1d5 |
|
23-Jul-2020 |
Emir SARI <bitigchi@me.com> |
Set Noto Sans Mono as monospace default font Should help improve [1]. [1]: https://github.com/haikuports/haikuports/issues/3116 Change-Id: I29dd94e3380c3a5935d47d97e2a2ac1c5fb7e774 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3070 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
|
#
d4dbce29 |
|
07-Mar-2020 |
Augustin Cavalier <waddlesplash@gmail.com> |
app_server: Drop custom HashTable and use HashMap instead. Change-Id: I7d5aae6a7fd2b4f47704a931a23eee09a4eedcac Reviewed-on: https://review.haiku-os.org/c/haiku/+/2323 Reviewed-by: John Scipione <jscipione@gmail.com>
|
#
177db1e4 |
|
09-Jan-2019 |
Augustin Cavalier <waddlesplash@gmail.com> |
app_server: Switch default UI font to Noto Sans Display. Fixes #14779.
|
#
9a90ee3a |
|
02-Aug-2018 |
Jérôme Duval <jerome.duval@gmail.com> |
Revert "Switch default fixed font from NotoMono to NotoSansMono" This reverts commit b2acee1cb986b696adfad7daabfe9279949a3e54. Reason: NotoSansMono is not per se a fixed font.
|
#
b2acee1c |
|
25-Nov-2017 |
Humdinger <humdingerb@gmail.com> |
Switch default fixed font from NotoMono to NotoSansMono Change-Id: Ib9eab5a2e266393b234cf7f4a6934fd58e31c943 Reviewed-on: https://review.haiku-os.org/48 Reviewed-by: waddlesplash <waddlesplash@gmail.com> Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
|
#
7abafe9f |
|
18-Feb-2017 |
Augustin Cavalier <waddlesplash@gmail.com> |
Revert "Revert "Switch from DejaVu to Noto font"" This reverts commit 2423ba84701f064cb78a40010113a8a45cc02a92.
|
#
2423ba84 |
|
18-Feb-2017 |
Augustin Cavalier <waddlesplash@gmail.com> |
Revert "Switch from DejaVu to Noto font" This reverts commit 945566ff43583e4f8102b4440c88f53dae775cb4. As discussed on the mailing lists and with Humdinger off-list: * The general design concensus tends slightly towards DejaVu, as metrics of DejaVu look much better (DejaVu 12 and Noto 13 are roughly the same size, but Noto has much wider margins with that) * While Noto does have a wider set of fonts with support for lots of different languages, DejaVu actually has built-in support for more Unicode languages (the default Noto has, as far as I can tell, only Latin/Greek/Cyrillic [2416 glyphs], while DejaVu also has Armenian, Georgian, and a few other scripts too [5119 glyphs].) * The worse rendering of DejaVu appears to have been somewhat rectified by disabling the average-based subpixel filter in app_server.
|
#
945566ff |
|
27-Nov-2016 |
Humdinger <humdingerb@gmail.com> |
Switch from DejaVu to Noto font As discussed, Noto renders much better with freetype 2.7 [1]. The DejaVu package is still in the HaikuPorts repo and can be installed manually just like all the other available fonts. [1] http://www.freelists.org/post/haiku-development/freetype-update-from-265-to-27
|
#
eb69155b |
|
04-Aug-2016 |
Axel Dörfler <axeld@pinc-software.de> |
app_server: Fixed/documented uses of new without nothrow. * This should fix all occurrences except for those in the drawing sub directory. * In some cases, the use of new without nothrow was okay, though.
|
#
1db2f863 |
|
06-Oct-2013 |
Rene Gollent <rene@gollent.com> |
Fix #10045. - app_server's FontManager also needs to watch ~/config/non-packaged/fonts.
|
#
38fa81bf |
|
03-Oct-2013 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Remove B_COMMON*_DIRECTORY and kCommon*Directory constants * This does intentionally break source compatibility, so that a review of concerned code is forced. * Binary compatibility should be maintained in most cases. The values of the constants for the writable directories are now used for the writable system directories. The values for the non-writable directories are mapped to "/boot/system/data/empty/...", an empty or non-existent directory, so that they will simply be skipped in search paths. Only code that explicitly expects to find something in a B_COMMON_* directory, will fail.
|
#
7db03c63 |
|
28-Apr-2013 |
Jérôme Duval <jerome.duval@gmail.com> |
FontManager: fixed trace mode
|
#
3fed1a15 |
|
05-Aug-2012 |
Alex Smith <alex@alex-smith.me.uk> |
Get app_server working on x86_64. With this commit, app_server now compiles and runs at boot! Nothing particularly interesting happens, just the blue background and a mouse pointer. Remote backends are broken and not compiled in, see #8834. Note that it won't be possible to build this quite yet, need to get the FreeType package uploaded.
|
#
f4f30311 |
|
24-Jul-2011 |
Clemens Zeidler <clemens.zeidler@googlemail.com> |
Cleanup app server directory a bit by creating a font and a decorator sub folder. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42483 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
1db2f863d8484f151ea8e5debd18f35d2a2f99a4 |
|
06-Oct-2013 |
Rene Gollent <rene@gollent.com> |
Fix #10045. - app_server's FontManager also needs to watch ~/config/non-packaged/fonts.
|
#
38fa81bf8f0ccc37a615a9f5bd333f9b781322b3 |
|
03-Oct-2013 |
Ingo Weinhold <ingo_weinhold@gmx.de> |
Remove B_COMMON*_DIRECTORY and kCommon*Directory constants * This does intentionally break source compatibility, so that a review of concerned code is forced. * Binary compatibility should be maintained in most cases. The values of the constants for the writable directories are now used for the writable system directories. The values for the non-writable directories are mapped to "/boot/system/data/empty/...", an empty or non-existent directory, so that they will simply be skipped in search paths. Only code that explicitly expects to find something in a B_COMMON_* directory, will fail.
|
#
7db03c63a05d4485e8d90d2ce737615e8b0efbfe |
|
28-Apr-2013 |
Jérôme Duval <jerome.duval@gmail.com> |
FontManager: fixed trace mode
|
#
3fed1a15f58e8d6fe6b492f3b94bb3625ffeddbd |
|
05-Aug-2012 |
Alex Smith <alex@alex-smith.me.uk> |
Get app_server working on x86_64. With this commit, app_server now compiles and runs at boot! Nothing particularly interesting happens, just the blue background and a mouse pointer. Remote backends are broken and not compiled in, see #8834. Note that it won't be possible to build this quite yet, need to get the FreeType package uploaded.
|
#
f4f30311aab9b2768d3ef7e590f85598298edfe0 |
|
24-Jul-2011 |
Clemens Zeidler <clemens.zeidler@googlemail.com> |
Cleanup app server directory a bit by creating a font and a decorator sub folder. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42483 a95241bf-73f2-0310-859d-f6bbb57e9c96
|