solvespace/src
whitequark 74cb1f589c Add two more points to the TTF text request.
These points can be used for constraining the width of the text
(or to the width of the text).

The main parts of the commit are:
  * TtfFont is restructured to be able to return the aspect ratio
    for a given string.
  * This aspect ratio is written to the savefile, such that even if
    the font is missing, the sketch would still be solved correctly.
  * The two additional points are constrained via perpendicularly
    to the two main points (which form a v vector).

The compatibility features are as follows:
  * When the font is missing in old files, 1:1 aspect ratio is used,
    which works for the replacement symbol anyhow.
  * When the two additional points are missing in old files, their
    would-be positions are calculated and they are moved there,
    avoiding 'jumping' of underconstrained sketches.
2016-11-02 09:22:18 +00:00
..
platform GTK: add a no-op glXSwapBuffers call for apitrace. 2016-10-22 07:47:13 +00:00
render Preserve stipple phase across separate piecewise linear segments. 2016-10-13 23:15:35 +00:00
srf Add a new renderer that prepares geometry for 2d backends. 2016-08-01 00:48:37 +00:00
CMakeLists.txt Factor out PolylineBuilder from DXF export code. 2016-10-13 22:05:29 +00:00
bsp.cpp Add a new renderer that prepares geometry for 2d backends. 2016-08-01 00:48:37 +00:00
clipboard.cpp Rephrase error messages that say "select a workplane". 2016-10-11 13:46:05 +00:00
config.h.in Implement a resource system. 2016-05-18 11:24:23 +00:00
confscreen.cpp Add a simple harness for automated, headless testing. 2016-08-01 00:48:37 +00:00
constraint.cpp Rephrase error messages that say "select a workplane". 2016-10-11 13:46:05 +00:00
constrainteq.cpp Add tests to cover 95.3% of constrainteq.cpp branches. 2016-08-07 17:33:27 +00:00
describescreen.cpp Replace convenience #defines with const auto references. 2016-10-10 12:34:10 +00:00
draw.cpp Fix many rendering bugs introduced in df83ee4 and 9f97e9a. 2016-10-13 21:30:27 +00:00
drawconstraint.cpp Allow selecting unit (px/mm) in Canvas::Stroke. 2016-10-11 23:32:21 +00:00
drawentity.cpp Fix many rendering bugs introduced in df83ee4 and 9f97e9a. 2016-10-13 21:30:27 +00:00
dsc.h Factor out PolylineBuilder from DXF export code. 2016-10-13 22:05:29 +00:00
entity.cpp Add two more points to the TTF text request. 2016-11-02 09:22:18 +00:00
export.cpp Use Canvas::Stroke, not Canvas::Fill, for drawing a point. 2016-10-11 23:32:05 +00:00
exportstep.cpp Annotate constants passed as boolean function arguments. 2016-05-26 12:43:52 +00:00
exportvector.cpp Factor out PolylineBuilder from DXF export code. 2016-10-13 22:05:29 +00:00
expr.cpp Replace the last use of exceptions (in Expr) with setjmp/longjmp. 2016-08-01 00:48:37 +00:00
expr.h Convert all enumerations to use `enum class`. 2016-05-25 07:17:14 +00:00
file.cpp Add two more points to the TTF text request. 2016-11-02 09:22:18 +00:00
generate.cpp Don't consider workplane origin point for bounding box calculation. 2016-11-02 02:43:45 +00:00
graphicswin.cpp Rephrase error messages that say "select a workplane". 2016-10-11 13:46:05 +00:00
group.cpp Don't consider workplane origin point for bounding box calculation. 2016-11-02 02:43:45 +00:00
groupmesh.cpp Stitch outlines before display to preserve phase of stippling. 2016-10-13 22:05:32 +00:00
importdxf.cpp Update 58db06d8 to not even try to use std::fstream with Unicode paths. 2016-10-09 20:00:02 +00:00
lib.cpp Annotate constants passed as boolean function arguments. 2016-05-26 12:43:52 +00:00
mesh.cpp Add a new renderer that prepares geometry for 2d backends. 2016-08-01 00:48:37 +00:00
modify.cpp Fix spelling error. 2016-10-11 16:47:23 +00:00
mouse.cpp Rephrase error messages that say "select a workplane". 2016-10-11 13:46:05 +00:00
polygon.cpp Add a new renderer that prepares geometry for 2d backends. 2016-08-01 00:48:37 +00:00
polygon.h Stitch outlines before display to preserve phase of stippling. 2016-10-13 22:05:32 +00:00
polyline.cpp Stitch outlines before display to preserve phase of stippling. 2016-10-13 22:05:32 +00:00
request.cpp Add two more points to the TTF text request. 2016-11-02 09:22:18 +00:00
resource.cpp Fix BitmapFont to not lose texture updates. 2016-10-11 23:45:19 +00:00
resource.h Fix BitmapFont to not lose texture updates. 2016-10-11 23:45:19 +00:00
sketch.h Add two more points to the TTF text request. 2016-11-02 09:22:18 +00:00
solvespace.cpp Don't consider arc center point for bounding box calculation. 2016-11-02 02:40:26 +00:00
solvespace.h Add two more points to the TTF text request. 2016-11-02 09:22:18 +00:00
style.cpp Fix a rendering bug introduced in 9f97e9a. 2016-10-14 04:15:20 +00:00
system.cpp Write params if system is solved as REDUNDANT_OKAY. 2016-10-14 00:10:41 +00:00
textscreens.cpp Write params if system is solved as REDUNDANT_OKAY. 2016-10-14 00:10:41 +00:00
textwin.cpp Replace convenience #defines with const auto references. 2016-10-10 12:34:10 +00:00
toolbar.cpp Abstract all (ex-OpenGL) drawing operations into a Canvas interface. 2016-07-23 22:31:18 +00:00
ttf.cpp Add two more points to the TTF text request. 2016-11-02 09:22:18 +00:00
ttf.h Add two more points to the TTF text request. 2016-11-02 09:22:18 +00:00
ui.h Add "Zoom to Fit" to context menu. 2016-10-09 22:26:36 +00:00
undoredo.cpp Unify displayEdges and displayOutlines. 2016-07-23 22:41:16 +00:00
util.cpp Preserve stipple phase across separate piecewise linear segments. 2016-10-13 23:15:35 +00:00
view.cpp Implement "view → set to full scale" text window command. 2016-08-01 14:03:16 +00:00