SysTryReturnResult(NID_GRP, startIndex >= 0 && length >= 0 && startIndex < text.GetLength(), E_OUT_OF_RANGE,
"The length(%d) & startIndex(%d) of the given text is out of range", length, startIndex);
- int pcWidth = _FloatToIntPos(_ResUtil::ToPhyCoordW(vcWidth));
+ int pcWidth = _FloatToIntForPos(_ResUtil::ToPhyCoordW(vcWidth));
Dimension pcDim;
result r = _pNativeFont->GetTextExtent(pcWidth, _Util::String(text.GetPointer(), text.GetLength(), startIndex, length), outline, count, pcDim);
SysTryReturnResult(NID_GRP, startIndex >= 0 && length >= 0 && startIndex < text.GetLength(), E_OUT_OF_RANGE,
"The length(%d) & startIndex(%d) of the given text is out of range", length, startIndex);
- int pcWidth = _FloatToIntPos(_ResUtil::ToPhyCoordW(vcWidth));
+ int pcWidth = _FloatToIntForPos(_ResUtil::ToPhyCoordW(vcWidth));
Dimension pcDim;
result r = _pNativeFont->GetTextExtent(pcWidth, _Util::String(text.GetPointer(), text.GetLength(), startIndex, length), outline, delimiter, count, pcDim);