Custom font symbols in Delphi + Mapx5

xiaoxiao2021-03-06  42

Custom font symbols in Mapx5

I feel that the application now uses custom fonts as point symbols is less and less. In recent times, when developing GIS systems managed by GPS vehicles, it is necessary to use the dynamic display vehicle position. I feel that other ways to display the vehicle on the map There is a certain impact on performance, so custom fonts are used.

The first is to create a custom font. Use the font editing software FontLab.v4.60.

Secondly, the font is used in Delphi Mapx.

MyStyle: = COSTYLE.CREATE;

Myfont: = tfont.create;

OLEFONTTOFONT (MyStyle.Symbolfont, MyFont);

Myfont.size: = 24;

Myfont.name: = 'mapinfo transpoction';

MyStyle.Symbolfontcolor: = CLRED;

MyStyle.Symbolcharacter: = 66;

One of these is to pay attention to, be sure to set the default point symbol font style to any kind of custom font in Map1, otherwise the specified font will not be displayed correctly. This should be a bug of Mapx5.

转载请注明原文地址:https://www.9cbs.com/read-54184.html

New Post(0)