In QGIS, I need to place road numbers on a map (they are point labels) in solid rectangular boxes to make them stand out. Ideally they need to be the same colour as the road they refer to, so a motorway number should be in a blue box because the motorways are blue etc.
The boxes also need to scale with the label size, as some roads are for example 'A9', whereas others are 'A4567'. The roads and their labels have codes defining their type so this could be used to set the colours.
Is this possible?