Quantcast

VACANCY: Font Engineer employment opportunity, London UK

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

VACANCY: Font Engineer employment opportunity, London UK

Dave Crossland
Hi!

If you can work in London and are interested in font engineering
employment then please email me offlist for more details :-)

Type of skills required: Python programming, understanding (or
potential for quickly learning) OpenType features and shaping,
FontForge, and RoboFab.

Location details: London office

Type of employer: Employment in a UK Limited Company

Minimum salary: £26,630–£37,350pa, depending on experience
and skills

Cheers
Dave

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Inkscape-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Method to get from (font,string) to exact width?

mathog
Short form:

 From within inkscape, how does one calculate the width of a string
given its text, font, and font size?  This will not
be drawn immediately and sizes will not (normally) be integers.  These
strings are, at the point this is being calculated,
not yet part of any part of the drawing.

Long form:

I have been trying to figure out how to get from a set of ~adjacent
input text strings
from an EMF file to an editable SVG format.  That is to address this
problem:

   http://saf.bio.caltech.edu/PPT_G_P_I/#I2P_formatted_strings

In the PowerPoint -> EMF -> Inkscape direction.  Experimentation has
shown that
so long as all <tspans> have absolute x,y coordinates the text editing
is broken. For instance, press "enter"
and that tspan folds back on itself.  Text editing works OK though for
an SVG like

<tspan x="100" y="100" sodipodi:role="line">
   (many tspans with only dx,dy offsets)
</tspan>
<tspan x="100" y="200" sodipodi:role="line">
   (many tspans with only dx,dy offsets)
</tspan>

Now the problem is that in order to convert from (x,y,text) format,
which is what comes out of the EMF,
like:

{100,100,"line of text")
(150,105,"superscript")
(160,100"" more text on the same line")

to (dx,dy,text) format one needs to know exactly how long each string
is in the specified font/character
size.  With that one extra piece of information it is trivial to
convert to:

(0,0,"line of text")
(22.5,5,"superscript")
(0,-5,"more text on the same line")

which can then be used to make editable SVG.  In many cases, if
adjacent strings really were originally
part of a line of text, then dx is 0, but it need not be, and there is
no way to know without calculating
the string widths.

Specifically, we know:

1.  every character in the string
2.  the font name
3.  the font size
4.  where the string starts (x1,y1)
5.  where the next string starts (x2,y2)

and from that we need

6   xfinal = where the string stops

to calculate

dx = x2-xfinal

Thanks,

David Mathog
[hidden email]
Manager, Sequence Analysis Facility, Biology Division, Caltech

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Inkscape-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Method to get from (font,string) to exact width?

mathog
Well, hours later, and I still couldn't figure out where Inkscape hides
its table of fonts/font properties.
Another one of those cases where it is faster to write something from
scratch than to figure out where
it is buried in existing code.  The attached small test case does the
desired sort of calculation
and works on both linux and Windows (mingw, with devlibs32 installed
for freetype
and fontconfig.)  The first time it ran on Windowx XP it took about 30
seconds, presumably because it
was making the font cache.  Subsequent runs were fast. Found the cache
file(s) in:

   C:\Documents and Settings\Local
Settings\<username>\Apps\Temp\fontconfig\cache

Strange file names, starts with a long string of hexadecimal characters
and then ends in
  ".cache-2" or ".cache-3".  Today's was 456KB and one from two days ago
was 935KB.  Not sure which other application made the older one, nor
why that one was twice as large.

Regards,

David Mathog
[hidden email]
Manager, Sequence Analysis Facility, Biology Division, Caltech
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Inkscape-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inkscape-devel

ft_example.c (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Method to get from (font,string) to exact width?

alvinpenner
Hello David,
        You are responding to a thread whose original title was :
VACANCY: Font Engineer employment opportunity, London UK

Are you applying for this position?

Alvin
Loading...