<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi <span>zhangkai,</span></p>
<p>Please do not reply to me privately. Always reply to the mailing list.</p>
<p>From what you describe below, you are doing tiled WMS requests in OpenLayers 2. Switch to single tile WMS mode and you should be fine. It will then behave the same like in QGIS Desktop.</p>
<p>See also <a href="http://gis.stackexchange.com/questions/83033/single-tiled-mapserver-wms-to-avoid-labels-and-features-cut-along-tile-borders-a">http://gis.stackexchange.com/questions/83033/single-tiled-mapserver-wms-to-avoid-labels-and-features-cut-along-tile-borders-a</a> or the OpenLayers 2 WMS documentation: <a href="http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Layer/WMS-js.html">http://dev.openlayers.org/releases/OpenLayers-2.13.1/doc/apidocs/files/OpenLayers/Layer/WMS-js.html</a></p>
<p>Just use "singleTile: true" and you should be fine.</p>
<p>Andreas</p>
<p>On 2016-08-18 07:25, zhangkai.gis wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored --><!-- meta ignored --><!-- base ignored -->
<div><span style="font-family: Times New Roman; font-size: 10pt;">Hello Andreas,</span></div>
<div><span style="font-family: Times New Roman; font-size: 10pt;">Thanks for your reply.I made a map then publish to qgis server.Most settings are default.When I use Qgis desktop as a web client It works perfect.But when I use OpenLayers 2 to display the map My font was cutted.I made a label with point layer.</span></div>
<div><span style="font-family: Times New Roman; font-size: 10pt;">My server address is <a href="http://222.222.218.51:8888/cgi-bin/room/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities">http://222.222.218.51:8888/cgi-bin/room/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities</a> </span></div>
<div><span style="font-family: Times New Roman; font-size: 10pt;"></span> </div>
<div><span style="font-family: Times New Roman; font-size: 10pt;">Thanks,</span></div>
<div><span style="font-family: Times New Roman; font-size: 10pt;">zhangkai</span></div>
<div><span style="font-family: Times New Roman; font-size: 10pt;"></span> </div>
<div><hr style="border-bottom: 0px; border-left: 0px; height: 1px; border-top: #c0c0c0 1px solid; border-right: 0px;" /></div>
<blockquote id="ntes-flashmail-quote" style="padding-left: 0px; font-family: Times New Roman; margin-left: 0px; font-size: 10pt;">
<div><strong>From:</strong>"Neumann, Andreas" <a.neumann@carto.net></div>
<div><strong>Date:</strong>2016-08-17 14:41</div>
<div><strong>Subject:</strong>Re: [Qgis-user] My text was cutted by Qgis-server</div>
<div><strong>To:</strong>"Paolo Cavallini"<cavallini@faunalia.it></div>
<div><strong>Cc:</strong>"qgis-user"<qgis-user@lists.osgeo.org></div>
<div> </div>
<div>
<p>Hi Zhangkai,</p>
<p>Please be more specific about what your real issue is. Are you using tiles or a single image WMS? Where exactly are the labels cut? At the image border or somewhere inside the rendered image?</p>
<p>What label methods are you using? What settings?</p>
<p>Is your server publically available so we can check? Can you share a small demo showing the issue?</p>
<p>Best, would be to open a bug report at <a href="https://hub.qgis.org/">https://hub.qgis.org/ </a>and upload some project and small sample data set and steps to reproduce.</p>
<p>We need much more information in order to help you.</p>
<p>Andreas</p>
<p>On 2016-08-17 08:33, Paolo Cavallini wrote:</p>
<blockquote style="border-left: #1010ff 2px solid; margin: 0px; padding: 0px 0.4em 0px 0.4em;">
<div class="pre" style="margin: 0px; font-family: monospace; padding: 0px;">Il 15/08/2016 03:07, zhangkai.gis ha scritto:
<blockquote style="border-left: #1010ff 2px solid; margin: 0px; padding: 0px 0.4em 0px 0.4em;">Hello all,<br />    I published a map(based shp layer) though Qgis-server.I make a layer<br />with point,then I add label to the layer.so I got a text layer in<br />Qgis.But when I publish it through the Qgis-server.I found that some<br />text was cutted and did not shown.Is it the correct way to publish text<br />layer?How to improve it?</blockquote>
<br />Hi zhangkai,<br />pleas euse exactly the same font on the desktop and on the server.<br />All the best.</div>
</blockquote>
<p> </p>
<div> </div>
</div>
</blockquote>
</blockquote>
<p> </p>
<div> </div>
</body></html>