Yealink Forums
XML Line Spacing (Leading) - Printable Version

+- Yealink Forums (http://forum.yealink.com/forum)
+-- Forum: IP Phone Series (/forumdisplay.php?fid=4)
+--- Forum: General topics (/forumdisplay.php?fid=15)
+--- Thread: XML Line Spacing (Leading) (/showthread.php?tid=1181)



XML Line Spacing (Leading) - TekMason - 01-17-2014 04:30 AM

I am working on a Weather application to use on T38Gs (38.70.0.132 Firmware) but I have come across an issue with text layout when using the FormattedTextScreen XML Object and layout of the text with <Line> tags.

When <Line Size="small"> is used the line spacing (Leading) for that text is the same as what it is for a normal size font. This makes the display look ugly, unprofessional and unnecessarily wastes a lot of screen real estate.

Here is the code (Pic1 attachment):
----------------------------------------------------
<YealinkIPPhoneFormattedTextScreen Beep="yes" Timeout="60" LockIn="no">
<Scroll>
<Line Size="normal">Current Conditions</Line>
<Line Size="small">Temperature: 2.1°C</Line>
<Line Size="small">Pressure: 100.7 kPa falling</Line>
<Line Size="small">Wind: S 31 km/h gust 45 km/h</Line>

<Line Size="normal">Monday, 13 January Forecast</Line>
<Line Size="small">Cloudy. A few showers beginning near noon.</Line>
<Line Size="small">Wind southwest 30 km/h.</Line>
<Line Size="small">High plus 4.</Line>

<Line Size="normal">Tuesday, 13 January Forecast</Line>
<Line Size="small">Cloudy. A blizzard.</Line>
<Line Size="small">Wind southwest 90 km/h.</Line>
<Line Size="small">High minus 10.</Line>
</Scroll>
</YealinkIPPhoneFormattedTextScreen>
----------------------------------------------------

Combining the lines of text with carriage returns under one <Line> tag,like this (Pic2 attachment):
----------------------------------------------------
<YealinkIPPhoneFormattedTextScreen Beep="yes" Timeout="60" LockIn="no">
<Scroll>
<Line Size="normal">Current Conditions</Line>
<Line Size="small">Temperature: 2.1°C
Pressure: 100.7 kPa falling
Wind: S 31 km/h gust 45 km/h</Line>

<Line Size="normal">Monday, 13 January Forecast</Line>
<Line Size="small">Cloudy. A few showers beginning near noon.
Wind southwest 30 km/h.
High plus 4.</Line>

<Line Size="normal">Tuesday, 13 January Forecast</Line>
<Line Size="small">Cloudy. A blizzard.
Wind southwest 90 km/h.
High minus 10.</Line>
</Scroll>
</YealinkIPPhoneFormattedTextScreen>
----------------------------------------------------
It puts proper line spacing for the small font on the phone but will display only 2 lines (see XML FormattedTextScreen post for additional details) under each <Line> tag.

Suggestions?

BTW Is there a direct line or contact for Yealink developer support?

TekMason