Optimal light absorption is decisive in obtaining high-efficiency solar cells. An established, if not to say the established, approach is to texture the interface of the light-absorbing layer with a suitable microstructure. However, structuring the light-absorbing layer is detrimental concerning its electrical properties due to an increased surface recombination rate (owing to enlarged surface area and surface defects) caused by the direct patterning process itself. This effect lowers the efficiency of the final solar cells. To circumvent this drawback, this work theoretically explores a transformation optics (TrO) inspired approach to map the nanopatterned texture onto a planar equivalent. This offers a pattern with the same optical functionality but with much improved electrical properties. Schwarz-Christoffel mappings are used for ensuring conformality of the maps. It leads to planar, inhomogeneous, dielectric-only materials for the light trapping structure to be placed on top of the planar light-absorbing layer. Such a design strategy paves a way towards a novel approach for implementing light-trapping structures into planar solar cells.