[vtkusers] VtkDistanceWidget label text font

kenichiro yoshimi rccm.kyoshimi at gmail.com
Thu May 3 08:03:13 EDT 2018


Hi Ashish,

You can change the font size as below.
---
  vtkAxisActor2D * axis =
    static_cast<vtkDistanceRepresentation2D
*>(distanceWidget->GetRepresentation())->GetAxis();
  axis->UseFontSizeFromPropertyOn();
  axis->GetTitleTextProperty()->SetFontSize(28);
---

I hope this helps you.

2018-05-03 15:04 GMT+09:00 ashishbme <ashishbme at gmail.com>:
> Hi,
>
> Can anybody suggest me, how can i change VtkDistanceWidget label text font.
> because in my application when displaying distance on image label font is
> too small.
>
> Thank you
> Ashish
>
>
>
> --
> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers


More information about the vtkusers mailing list