Please provide a function in API to get horizontal pixel coordinate of any character in any line. #118994
Labels
feature-request
Request for new features or functionality
Milestone
[NEW UPDATE]:
My VS Code extension "Blockman" has already more than 100K installs.
This feature request (With VS Code extension API to be able to get horizontal pixel coordinate of any character in any line) is still valid, because there are some edge cases when Blockman cannot compute edges properly, for example when the font in not monospace, or when there are inlay hints.
[THE FEATURE REQUEST]:
The problem is about non-monospace fonts (or using two monospace fonts which have different widths).
I don't have access to pixel locations of characters, so I can only just compute px location from width of general char frame and number of characters to that character. So the problem shows up if not all the characters have the same frame-width:
Please provide a function to be able to get pixel locations of any character in a line. I don't need vertical px locations, I need only horizontal px locations.
Like this:
The text was updated successfully, but these errors were encountered: