One vertex buffer with varying with

I would like to draw lines from one vertex buffer but with changing width. Is it possible?

Just draw quads (2 triangles) instead of lines and you can have any width you like.
As far as I know arbitrary line-width is not supported any more.

Thanks, i will try that