- /*
- $unit_offset_map = array(0, 36, 73, 109, 146, 182, 219);
- $width_units = $excel_column_width_factor * ($px / $unit_offset_length);
- $width_units += $unit_offset_map[($px % $unit_offset_length)];
- return $width_units;
- $pixels = (float)((float)$px / (float)$excel_column_width_factor) * $unit_offset_length;
- $ofs = $px % $excel_column_width_factor;
- $pixels += round((float)$ofs / ((float) $excel_column_width_factor / $unit_offset_length));
- return (int)$pixels;
- */