Commit Graph
8 Commits
Author SHA1 Message Date
Aditya Bhatt 21f7e5fff4 Better handling of undefined font family in fontPicker 2013-03-25 15:52:57 +05:30
Aditya Bhatt a1354b010e Some changes to handle undefined font families 2013-03-25 15:52:57 +05:30
Aditya Bhatt df17d620c7 Add a getFamily method to fontPicker, which retrieves the family for a
font with a given name. Use this in the font pane so that we can see
previews for fonts.
2013-03-25 15:52:57 +05:30
Aditya Bhatt 29df7b772a * Move XHR from editor.js to EditorSession, stop making fonts global,
and make this synchronous
* Some explanatory comments about the simple css parsing
* Use a better technique for deduplicating font family declarations,
pick the alphabetically first font name
2013-03-06 19:51:19 +05:30
Aditya Bhatt 1f894d0691 Remove lots of whitespace 2013-03-06 19:51:19 +05:30
Aditya Bhatt 3d74878cd1 * getUsedFonts -> getDeclaredFonts renaming.
* documentation
2013-03-06 19:51:19 +05:30
Aditya Bhatt cf583fc8ea Explanatory Comments 2013-03-06 19:51:19 +05:30
Aditya Bhatt 3c062a76cd * A new widget, fontPicker.js, made in a similar way to
paragraphStyles.js.
* Remove old declarative 'placeholder' font selector from
fontEffectsPane.html, and attach programmatically the new fontPicker in
it's place. Rename fontFamily to fontName, since we are actually dealing
with font-names here when we work with styles.
2013-03-06 19:51:19 +05:30