CPC G06F 40/109 (2020.01) [G06F 3/04842 (2013.01); G06F 40/166 (2020.01)] | 20 Claims |
1. A method comprising:
receiving, by a processing device, input data describing a position of a cursor relative to glyphs of editable text rendered in a user interface using a font;
enclosing, by the processing device, the glyphs of the editable text within a bounding box having a height that is less than a height of an em-box of the font, the bounding box included in a font file of the font;
generating, by the processing device, a first group of snap guides for the glyphs of the editable text, the first group of snap guides including a snap guide for a top side of the bounding box, a snap guide for a bottom side of the bounding box, a snap guide for a left side of the bounding box, a snap guide for a right side of the bounding box, and a snap guide for an x-height of the font; and
generating, by the processing device for display in the user interface, an indication of a particular snap guide of the first group of snap guides based on the position of the cursor.
|