mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 18:24:48 +00:00
Add a FIXME and a hint for implementation of surrogate pair metric problem.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20839 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
2ef6f885d4
commit
bd720f7277
@ -122,8 +122,21 @@ int GuiFontMetrics::width(docstring const & s) const
|
||||
{
|
||||
size_t ls = s.size();
|
||||
int w = 0;
|
||||
for (unsigned int i = 0; i < ls; ++i)
|
||||
for (unsigned int i = 0; i < ls; ++i) {
|
||||
//FIXME: we need to detect surrogate pairs and act accordingly
|
||||
/**
|
||||
if isSurrogateBase(s[i]) {
|
||||
docstring c = s[i];
|
||||
if (smallcaps_shape_)
|
||||
w += metrics_.width(toqstr(c + s[i + 1]));
|
||||
else
|
||||
w += smallcaps_metrics_.width(toqstr(c + s[i + 1]));
|
||||
++i;
|
||||
}
|
||||
else
|
||||
*/
|
||||
w += width(s[i]);
|
||||
}
|
||||
|
||||
return w;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user