[postgis-devel] postgis_letters in project tree?

Bruce Rindahl bruce.rindahl at gmail.com
Thu Jan 27 15:37:22 PST 2022


Does that handle bezier curves?  That was the most difficult part of the
process and fonts seem to be loaded with them.

Also might need a text direction parameter for right to left fonts (i.e.
Hebrew)

On Thu, Jan 27, 2022 at 3:18 PM Martin Davis <mtnclimb at gmail.com> wrote:

> It would also be easy to whip up a Java app to dump out TTF fonts as WKT
> or GeoJSON, using the JTS FontGlyphReader class (as shown in the
> following code):
>
>
> https://github.com/locationtech/jts/blob/master/modules/app/src/main/java/org/locationtech/jtstest/function/CreateShapeFunctions.java#L62
>
> On Thu, Jan 27, 2022 at 3:00 PM Bruce Rindahl <bruce.rindahl at gmail.com>
> wrote:
>
>> Looking at the code I would propose the following as a process if someone
>> wants a different font.
>> Convert TTF to SVG via Batik
>> Run my python script to convert the SVG to SQL
>> Using Regina's postgis_letters extension, load the SQL into the font table
>> Using whatever Paul did to generate the function (I assume you did it
>> with a single SELECT statement) generate the new function
>>
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/postgis-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20220127/6d629cf2/attachment-0001.html>


More information about the postgis-devel mailing list