From 51bd334f3fba1e074d5f51f518e65c8fad2c2928 Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Wed, 2 Jul 2014 15:57:28 +1000 Subject: [PATCH] First part of font refactoring. These changes simplify a few things but don't do much on their own, they just make it easier to implement the work to come (web fonts, performance improvments in terms of font loading and memory usage). - Font identifier on Linux/Android is now the font file path. This is a temporary measure, but simplifies things a lot for now. - Remove FontListHandleMethods trait in favour of free functions. - FontList::refresh() has no knowledge of FontFamily etc. Instead it takes a closure that the caller provides. - FontList::load_variations_for_family no longer creates the font handle. Instead it takes a closure and provides the name of the font identifier for the variations it finds. - Remove path_from_identifier() - it's no longer required. - create_font_from_identifier() takes an Option