)]}' { "commit": "0f4ac587a4ae4717a414d2b359085e9126b93a84", "tree": "aa63c865d61bd55dbc576e9ee382a2cfae54be29", "parents": [ "d30c5601bba6155d098cec730ac122ad155a8158" ], "author": { "name": "Ian Prest", "email": "iapres@microsoft.com", "time": "Thu Sep 26 20:33:18 2019 +0000" }, "committer": { "name": "Chromium commit bot", "email": "commit-bot@chromium.org", "time": "Thu Sep 26 20:33:18 2019 +0000" }, "message": "New API to retrieve a character\u0027s loose bounds\n\nThis change adds a new API `FPDFText_GetLooseCharBox` that retrieves the\n\"loose\" bounds of a character. I.e., the returned bounds will cover the\nentire possible extent of the character (given its width). The height\nof the box will always be the same as the font size. The width will\nequal the entire \"advance\" of the character.\n\nCompare with `FPDFText_GetCharBox`, which returns a \"tight\" box around\nthe actual curves that make up the glyph.\n\nThis API will be used to make the PDF a11y line-breaking heuristics\nmore reliable, so that, e.g., lines are treated the same way\n(mathematically) even if they don\u0027t have any ascenders or descenders.\n\nChange-Id: I2860f12865b6c81e90cb2621fd8adac1ab5f2530\nBug: chromium:985604\nReviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/59971\nReviewed-by: Lei Zhang \u003cthestig@chromium.org\u003e\nCommit-Queue: Lei Zhang \u003cthestig@chromium.org\u003e\n", "tree_diff": [ { "type": "modify", "old_id": "e20446581dd58d9990ea7617838995118dd29dc8", "old_mode": 33188, "old_path": "fpdfsdk/fpdf_text.cpp", "new_id": "1387473072910944b1fd92f8b89b02d284003f06", "new_mode": 33188, "new_path": "fpdfsdk/fpdf_text.cpp" }, { "type": "modify", "old_id": "e4d11eda50dab3f0771ef277a52ed032ebda9baf", "old_mode": 33188, "old_path": "fpdfsdk/fpdf_text_embeddertest.cpp", "new_id": "e3b8216caa1a74279a60ada86df4ae89ac240d53", "new_mode": 33188, "new_path": "fpdfsdk/fpdf_text_embeddertest.cpp" }, { "type": "modify", "old_id": "0a7baf7dab8df33dd6f5001c3bc3924528957070", "old_mode": 33188, "old_path": "fpdfsdk/fpdf_view_c_api_test.c", "new_id": "e7d10268fc9856342ec4e747831ab6245f54be89", "new_mode": 33188, "new_path": "fpdfsdk/fpdf_view_c_api_test.c" }, { "type": "modify", "old_id": "04664bed4abf7ac83f1e169bf0d3a526254a9a88", "old_mode": 33188, "old_path": "public/fpdf_text.h", "new_id": "d71e1461ee4875c8a55368ffd26daa4343648adc", "new_mode": 33188, "new_path": "public/fpdf_text.h" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "4a874c3dae481969eb644549a4b096302cdaa113", "new_mode": 33188, "new_path": "testing/resources/vertical_text.in" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "37d8115a35f6e586669426ce3c02c2fc96c68596", "new_mode": 33188, "new_path": "testing/resources/vertical_text.pdf" } ] }