You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GHCi, version 8.0.1: http://www.haskell.org/ghc/:? for help
Prelude> import GI.PangoPreludeGI.Pango>:t layoutGetPixelSize
layoutGetPixelSize
:: (Control.Monad.IO.Class.MonadIOm, IsLayouta) =>a->m (GHC.Int.Int32, GHC.Int.Int32)
PreludeGI.Pango>:t layoutGetSize
<interactive>:1:1:error:
•Variablenotin scope: layoutGetSize
•Perhaps you meant one of these:
‘layoutGetLine’ (imported from GI.Pango),
‘layoutGetLines’ (imported from GI.Pango)
The text was updated successfully, but these errors were encountered:
deepfire
changed the title
layoutGetSize is not provided
GI.Pango.layoutGetSize is not provided
Feb 25, 2017
Yes, indeed, thanks for the report! The problem was due to wrong introspection annotations, so the function was not being generated. I added some overrides in b74c6cc, released the fixes as gi-pango-1.0.12 to hackage, and reported the issue in pango upstream.
According to https://developer.gnome.org/pango/stable/pango-Layout-Objects.html#pango-layout-get-size
pango_layout_get_size
is a thing, and evenhttps://hackage.haskell.org/package/gi-pango-1.0.11/docs/GI-Pango-Objects-Layout.html#v:layoutGetPixelSize refers to
layoutGetSize
, however it is not made available byGI.Pango
:The text was updated successfully, but these errors were encountered: