Skip to content

Commit

Permalink
Use point envelope (@ origin) for text objects instead of empty.
Browse files Browse the repository at this point in the history
Fixes #115.
Fixes #116.

NOTE: make sure we update documentation to match/explain this more carefully.
  • Loading branch information
Brent Yorgey committed Sep 22, 2013
1 parent 0484b6b commit def0058
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Diagrams/TwoD/Text.hs
Expand Up @@ -32,9 +32,10 @@ module Diagrams.TwoD.Text (

import Diagrams.Attributes
import Diagrams.Core
import Diagrams.Core.Envelope (pointEnvelope)
import Diagrams.TwoD.Types

import Data.AffineSpace ((.-.))
import Data.AffineSpace ((.-.))

import Data.Semigroup

Expand Down Expand Up @@ -75,7 +76,7 @@ mkText a t = recommendFillColor (black :: Colour Double)
-- See Note [recommendFillColor]

$ mkQD (Prim (Text mempty a t))
mempty
(pointEnvelope origin)
mempty
mempty
mempty
Expand Down

0 comments on commit def0058

Please sign in to comment.