{"push_id":1063545028,"size":1,"distinct_size":1,"ref":"refs/heads/for-upstream","head":"d7fb5ddb1176dc0be4998652d91855ef4a859f27","before":"a4c35f490a6f7324755e1aaacab9aba418b8ef4e","commits":[{"sha":"d7fb5ddb1176dc0be4998652d91855ef4a859f27","author":{"email":"b4701ebf9366004900e8211cdb469ccf92f5074c@whitequark.org","name":"whitequark"},"message":"Ensure edit control font size matches font size of text being edited.\n\nBefore this commit, the position of the edit box was adjusted\nby trial and error, as far as I can tell. This commit changes\nthe positioning machinery for edit controls as follows:\n\nThe coordinates passed to ShowTextEditControl/ShowGraphicsEditControl\nnow denote: X the left bound, and Y the baseline.\n\nThe font height passed to ShowGraphicsEditControl denotes\nthe absolute font height in pixels, i.e. ascent plus descent.\n\nPlatform-dependent code uses these coordinates, the font metrics\nfor the font appropriate for the platform, and the knowledge of\nthe decorations drawn around the text by the native edit control\nto position the edit control in a way that overlays the text inside\nthe edit control with the rendered text.\n\nOn OS X, GNU Unifont (of height 16) has metrics identical to\nMonaco (of height 15) and so as an exception, the edit control\nis nudged slightly for a pixel-perfect fit.","distinct":true,"url":"https://api.github.com/repos/whitequark/solvespace/commits/d7fb5ddb1176dc0be4998652d91855ef4a859f27"}]}